I tried setting up my Access token in the Authorize field. It didn't work. When I check the curl request there is no header parameter for Authorization. Can someone tell me how to add Bearer Token Auth?
Hello,
Something like this should work:
SWAGGER_SETTINGS = {
'SECURITY_DEFINITIONS': {
'Bearer': {
'type': 'apiKey',
'name': 'Authorization',
'in': 'header'
}
}
}
You will have to click the green authorize button in the top right and set the acces token; you will have to add the Bearer prefix manually when setting the token, as OpenAPI 2.0 has no support for authorization header prefixes - e.g. Bearer <token here>
Most helpful comment
Hello,
Something like this should work:
You will have to click the green authorize button in the top right and set the acces token; you will have to add the
Bearerprefix manually when setting the token, as OpenAPI 2.0 has no support for authorization header prefixes - e.g.Bearer <token here>