Skip to content

Commit

Permalink
feat: add token auth
Browse files Browse the repository at this point in the history
Change-Id: If3570fe2f226629bf567b097159c71a39a472bb5
  • Loading branch information
Guillaume-sousa committed Dec 16, 2024
1 parent 1b93812 commit 54402db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nmrr/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"django.contrib.staticfiles",
# Extra apps
"rest_framework",
"rest_framework.authtoken",
"drf_spectacular",
"menu",
"captcha",
Expand Down Expand Up @@ -255,6 +256,7 @@
"DEFAULT_AUTHENTICATION_CLASSES": (
"rest_framework.authentication.BasicAuthentication",
"rest_framework.authentication.SessionAuthentication",
"rest_framework.authentication.TokenAuthentication",
),
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
}
Expand Down

0 comments on commit 54402db

Please sign in to comment.