-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: implement backend view that logs in as test User #400
- Loading branch information
Showing
3 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
from django.urls import path, include | ||
from rest_framework.routers import DefaultRouter | ||
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView, TokenVerifyView | ||
from authentication.views import CASViewSet | ||
from authentication.views import CASViewSet, TestUser | ||
|
||
router = DefaultRouter() | ||
router.register("cas", CASViewSet, "cas") | ||
router.register("test-user", TestUser, "test-user") | ||
|
||
urlpatterns = [ | ||
# AUTH endpoints. | ||
path("", include(router.urls)), | ||
# TOKEN endpoints. | ||
path("token/", TokenObtainPairView.as_view(), name="token"), | ||
path("token/refresh/", TokenRefreshView.as_view(), name="token-refresh"), | ||
path("token/verify/", TokenVerifyView.as_view(), name="token-verify") | ||
path("token/verify/", TokenVerifyView.as_view(), name="token-verify"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters