1
0
Fork 0

Force authentication for API usage

This commit is contained in:
Dariusz Niemczyk 2023-07-13 22:37:53 +02:00
parent a20e14a8d3
commit af85d191ad
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
"DEFAULT_PERMISSION_CLASSES": [
"rest_framework.permissions.IsAuthenticatedOrReadOnly",
"rest_framework.permissions.IsAuthenticated",
],
"DEFAULT_AUTHENTICATION_CLASSES": [
"rest_framework.authentication.BasicAuthentication",