Description
Multiple Authentication settings won't work, since the API is setting the same key for multiple Headers.
openapi-generator version
3.1
OpenAPI declaration file content or url
in yaml:
[...]security:
- ApiKeyAuth1: []
- ApiKeyAuth2: [][...]components:
securitySchemes:
ApiKeyAuth1:
type: apiKeyin: headername: X-Auth-Key-1ApiKeyAuth2:
type: apiKeyin: headername: X-Auth-Key-2
in go:
ifctx!=nil {
// API Key Authenticationifauth, ok:=ctx.Value(ContextAPIKey).(APIKey); ok {
varkeystringifauth.Prefix!="" {
key=auth.Prefix+" "+auth.Key
} else {
key=auth.Key
}
localVarHeaderParams["X-Auth-Key-1"] =key
}
}
ifctx!=nil {
// API Key Authenticationifauth, ok:=ctx.Value(ContextAPIKey).(APIKey); ok {
varkeystringifauth.Prefix!="" {
key=auth.Prefix+" "+auth.Key
} else {
key=auth.Key
}
localVarHeaderParams["X-Auth-Key-2"] =key
}
}
Description
Multiple Authentication settings won't work, since the API is setting the same key for multiple Headers.
openapi-generator version
3.1
OpenAPI declaration file content or url
in yaml:
in go: