Skip to content

Commit 8305707

Browse files
committed
Add Basic Authentication
1 parent 6a5d135 commit 8305707

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/settings/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@
307307
"DEFAULT_AUTHENTICATION_CLASSES": (
308308
"rest_framework.authentication.SessionAuthentication",
309309
"rest_framework.authentication.TokenAuthentication",
310+
"rest_framework.authentication.BasicAuthentication",
310311
'rest_framework_simplejwt.authentication.JWTAuthentication',
311312
),
312313
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticatedOrReadOnly",),
@@ -333,4 +334,4 @@
333334
# ------------------------------------------------------------------------------
334335
CORS_ALLOWED_ORIGINS = [
335336
"http://localhost:3000",
336-
]
337+
]

0 commit comments

Comments
 (0)