Skip to content

Commit

Permalink
token auth for swagger (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
asp345 authored Feb 10, 2025
1 parent 7ad34d3 commit ce133a6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wemade_2024_server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,13 @@

APPEND_SLASH = True
AUTH_USER_MODEL = 'oauth.OauthInfo'

SWAGGER_SETTINGS = {
'SECURITY_DEFINITIONS': {
'api_key': {
'type': 'apiKey',
'in': 'header',
'name': 'Authorization'
}
},
}

0 comments on commit ce133a6

Please sign in to comment.