Skip to content

Commit

Permalink
Merge pull request #34 from nens/csrf-middleware
Browse files Browse the repository at this point in the history
removed 2 auth classes
  • Loading branch information
JJFlorian authored Apr 5, 2024
2 parents 3a67284 + 5f1ac30 commit 897251b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions brostar_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
Expand Down Expand Up @@ -200,8 +199,8 @@
"PAGE_SIZE": 1000,
"DEFAULT_FILTER_BACKENDS": ["django_filters.rest_framework.DjangoFilterBackend"],
"DEFAULT_AUTHENTICATION_CLASSES": (
"nens_auth_client.rest_framework.OAuth2TokenAuthentication",
"rest_framework.authentication.BasicAuthentication",
# "nens_auth_client.rest_framework.OAuth2TokenAuthentication",
# "rest_framework.authentication.BasicAuthentication",
"rest_framework.authentication.SessionAuthentication",
),
}
Expand Down

0 comments on commit 897251b

Please sign in to comment.