swagger-api/swagger-codegen

[csharp-client] authentication does not implemented

Open

#5,121 建立於 2017年3月20日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)HTML (12,701 star) (5,474 fork)batch import
Client: C-SharpGeneral: QuestionIssue: Securityhelp wanted

描述

Description

I have security description in my swagger, but I haven't found any security implementations in the client.

Swagger-codegen version

last commit from github

Swagger declaration file content or url
 securityDefinitions: 
     apiKey: 
         type: 'apiKey' 
         description: 'API Key Authentication' 
         name: 'apiKey' 
         in: 'header' 
     oauth2: 
         type: 'oauth2' 
         description: 'OAuth2 Implicit Grant' 
         flow: 'implicit' 
         authorizationUrl: 'http://petstore.swagger.wordnik.com/api/oauth/dialog' 
         tokenUrl: 'https://tempuri.org/token' 
         scopes: 
Command line used for generation
java.exe -jar $Global:swaggerJar `
    generate `
    -i $Global:swaggerJsonUrl `
    -l csharp `
    -o $Global:outputFolder `
    -c $Global:config `
    -t $Global:templates `
    --additional-properties $json.'additional-properties'`

where $global set to my variables

Suggest a Fix

I suppose it should be similar template as for java ApiKeyAuth but not sure

貢獻者指南