Skip to content

Commit fcfa6bc

Browse files
moved to JWT authentication
1 parent 58af90d commit fcfa6bc

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

server/server/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777

7878
REST_FRAMEWORK = {
7979
"DEFAULT_AUTHENTICATION_CLASSES": (
80-
"rest_framework.authentication.SessionAuthentication",
8180
"rest_framework_simplejwt.authentication.JWTAuthentication",
8281
),
8382
}

server/server/urls.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@
2020
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
2121

2222
urlpatterns = [
23+
# admin
2324
path("admin/", admin.site.urls),
24-
path("api-auth/", include("rest_framework.urls")),
25+
26+
# using JWT for auth for front end
2527
path("api/token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
2628
path("api/token/refresh/", TokenRefreshView.as_view(), name="token_refresh_view"),
29+
30+
# URLS for meaningful stuff
2731
path("api/healthcheck/", include("healthcheck.urls")),
2832
# path("api/user/", include("user_profile.urls")),
2933
path("api/user/", include("user.urls")),

0 commit comments

Comments
 (0)