swagger-api/swagger-codegen

[csharp-client] authentication does not implemented

Open

#5,121 opened on Mar 20, 2017

View on GitHub
 (5 comments) (0 reactions) (0 assignees)HTML (12,701 stars) (5,474 forks)batch import
Client: C-SharpGeneral: QuestionIssue: Securityhelp wanted

Description

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

Contributor guide

[csharp-client] authentication does not implemented · swagger-api/swagger-codegen#5121 | Good First Issue