Skip to content

Commit 4d4a82c

Browse files
committed
logout
1 parent 24b7bbd commit 4d4a82c

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

api/settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
'corsheaders',
8383
'rest_framework',
8484
'drf_spectacular',
85+
'rest_framework_simplejwt.token_blacklist',
8586
"api.apps.ApiConfig"
8687
]
8788

api/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
1616
from django.urls import path
17-
from rest_framework_simplejwt.views import TokenRefreshView, TokenVerifyView
17+
from rest_framework_simplejwt.views import TokenRefreshView, TokenVerifyView, TokenBlacklistView
1818
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
19-
2019
from .views import (
2120
MassEnrollCourseView,
2221
test,
@@ -46,6 +45,7 @@
4645
path('token/', GetTokenView.as_view(), name='token_obtain_pair'),
4746
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
4847
path('token/verify/', TokenVerifyView.as_view(), name='token_verify'),
48+
path('token/blacklist/', TokenBlacklistView.as_view(), name='token_blacklist'),
4949

5050
# All user paths
5151
path('user/register/', CreateUserView.as_view(), name='user_register'),

requirements.txt

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
argcomplete==3.2.2
22
asgiref==3.7.2
3+
attrs==23.2.0
34
beautifulsoup4==4.12.3
45
boto3==1.34.50
56
botocore==1.34.50
@@ -12,10 +13,14 @@ django-cors-headers==4.3.1
1213
django-livereload==1.7
1314
djangorestframework==3.14.0
1415
djangorestframework-simplejwt==5.3.1
16+
drf-spectacular==0.27.1
1517
durationpy==0.6
1618
hjson==3.1.0
1719
idna==3.6
20+
inflection==0.5.1
1821
jmespath==1.0.1
22+
jsonschema==4.21.1
23+
jsonschema-specifications==2023.12.1
1924
kappa==0.6.0
2025
MarkupSafe==2.1.5
2126
placebo==0.9.0
@@ -26,7 +31,9 @@ python-decouple==3.8
2631
python-slugify==8.0.4
2732
pytz==2024.1
2833
PyYAML==6.0.1
34+
referencing==0.33.0
2935
requests==2.31.0
36+
rpds-py==0.18.0
3037
s3transfer==0.10.0
3138
six==1.16.0
3239
soupsieve==2.5
@@ -36,6 +43,7 @@ toml==0.10.2
3643
tqdm==4.66.2
3744
troposphere==4.6.0
3845
typing_extensions==4.9.0
46+
uritemplate==4.1.1
3947
urllib3==1.26.18
4048
Werkzeug==3.0.1
4149
zappa==0.58.0

0 commit comments

Comments
 (0)