[python] bearerAuth always type basic
Created by: vmorris
Description
Defining security component like
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer"
}
}
},
"security": [
{
"bearerAuth": []
}
]
When I generate a python client, the API configuration code only allows for type: basic
.
In configuration.py:
def auth_settings(self):
"""Gets Auth Settings dict for api client.
:return: The Auth Settings information dict.
"""
return {
'bearerAuth':
{
'type': 'basic',
'in': 'header',
'key': 'Authorization',
'value': self.get_basic_auth_token()
},
}
openapi-generator version
3.3.3