Skip to content

Commit

Permalink
feat: add token auth
Browse files Browse the repository at this point in the history
Change-Id: I591208bd28abdec85565aaba1655c637334f8721
  • Loading branch information
Guillaume-sousa committed Dec 16, 2024
1 parent 74a5170 commit d5fec8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mdcs/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"oauth2_provider",
# Extra apps
"rest_framework",
"rest_framework.authtoken",
"drf_spectacular",
"menu",
"captcha",
Expand Down Expand Up @@ -261,6 +262,7 @@
"rest_framework.authentication.BasicAuthentication",
"rest_framework.authentication.SessionAuthentication",
"oauth2_provider.contrib.rest_framework.OAuth2Authentication",
"rest_framework.authentication.TokenAuthentication",
),
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
}
Expand Down

0 comments on commit d5fec8d

Please sign in to comment.