Skip to content

Commit

Permalink
Activate blacklist app
Browse files Browse the repository at this point in the history
Found by ZeroPath's Beta Business Logic Scanner https://zeropath.com
  • Loading branch information
derneuere committed Sep 14, 2024
1 parent fbad78a commit e7c5348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions librephotos/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"api",
"nextcloud",
"rest_framework",
"rest_framework_simplejwt.token_blacklist",
"corsheaders",
"chunked_upload",
"django_extensions",
Expand Down
7 changes: 6 additions & 1 deletion librephotos/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
TokenObtainPairSerializer,
TokenRefreshSerializer,
)
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
from rest_framework_simplejwt.views import (
TokenBlacklistView,
TokenObtainPairView,
TokenRefreshView,
)

from api.views import (
album_auto,
Expand Down Expand Up @@ -215,6 +219,7 @@ def post(self, request, *args, **kwargs):
re_path(r"^api/wordcloud", dataviz.SearchTermWordCloudView.as_view()),
re_path(r"^api/auth/token/obtain/$", CustomTokenObtainPairView.as_view()),
re_path(r"^api/auth/token/refresh/$", CustomTokenRefreshView.as_view()),
re_path(r"^api/auth/token/blacklist/", TokenBlacklistView.as_view()),
re_path(
r"^media/(?P<path>.*)/(?P<fname>.*)",
views.MediaAccessFullsizeOriginalView.as_view(),
Expand Down

0 comments on commit e7c5348

Please sign in to comment.