Skip to content

Commit

Permalink
fix: Add fallback logout URL for non-OIDC environments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ty Mees committed Jan 27, 2025
1 parent f63886d commit a3fd4e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions humitifier-server/src/humitifier_server/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from django.conf import settings
from django.contrib import admin
from django.contrib.auth.views import LogoutView
from django.urls import include, path
from mozilla_django_oidc.urls import OIDCAuthenticateClass, OIDCCallbackClass
from mozilla_django_oidc.views import OIDCLogoutView
Expand Down Expand Up @@ -50,3 +51,8 @@
),
path("oidc/logout/", OIDCLogoutView.as_view(), name="oidc_logout"),
]
else:
# URL name is wrong obviously, can't be bothered to fix that
urlpatterns += [
path("logout", LogoutView.as_view(), name="oidc_logout"),
]

0 comments on commit a3fd4e5

Please sign in to comment.