swagger-api/swagger-codegen

[csharp-client] authentication does not implemented

Open

#5 121 ouverte le 20 mars 2017

Voir sur GitHub
 (5 commentaires) (0 réactions) (0 assignés)HTML (5 474 forks)batch import
Client: C-SharpGeneral: QuestionIssue: Securityhelp wanted

Métriques du dépôt

Stars
 (12 701 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur