Skip to content

Instantly share code, notes, and snippets.

@CryceTruly
Created October 13, 2022 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CryceTruly/9b2468af38161899066b846139693bc4 to your computer and use it in GitHub Desktop.
Save CryceTruly/9b2468af38161899066b846139693bc4 to your computer and use it in GitHub Desktop.
SWAGGER_SETTINGS = {
'USE_SESSION_AUTH': True,
'REFETCH_SCHEMA_ON_LOGOUT': True,
'LOGIN_URL': '/',
'LOGOUT_URL': '/logout',
'SECURITY_DEFINITIONS': {
'Bearer': {
'type': 'apiKey',
'name': 'Authorization',
'in': 'header'
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment