Closed
Description
Description
I have a spec that allows either use of basic auth or an API-Key header. The generated python client always uses basic auth when making requests even when the username and password are empty (""). The following header is added: Authorization: Basic Og==
Swagger-codegen version
I was using the version on https://editor.swagger.io/
Swagger declaration file content or url
My security definitions are:
"securityDefinitions" : {
"APIKeyHeader" : {
"type" : "apiKey",
"in" : "header",
"name" : "API-Key"
},
"basicAuth" : {
"type" : "basic"
}
}
I am applying these schemes globally:
"security" : [ {
"APIKeyHeader" : [ ]
}, {
"basicAuth" : [ ]
} ]
Metadata
Metadata
Assignees
Labels
No labels