swagger-api/swagger-codegen
GitHub で見る[csharp-client] authentication does not implemented
Open
#5,121 opened on 2017年3月20日
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