kumidc/kumidc/urls.py
Kumi da49ddabcc
Add Django CAS authentication support
Introduce support for Central Authentication Service (CAS) alongside existing OIDC and SAML by integrating a new CAS server app and custom CAS authentication user model. Streamline sign-in infrastructure with updated URL patterns. As part of the update, refactor user model `username` resolution to leverage the email field directly. Includes necessary Django migrations to support new authentication features and removes a deprecated OIDC provider dependency.
2023-12-24 09:16:55 +01:00

17 lines
606 B
Python

from django.contrib import admin
from django.urls import path, include, reverse_lazy
from django.views.generic import RedirectView
urlpatterns = [
path('openid/', include('oidc_provider.urls', 'oidc_provider')),
path('saml/', include('djangosaml2idp.urls', 'djangosaml2idp')),
path('cas/', include('cas_server.urls', "cas_server")),
path('admin/login/', RedirectView.as_view(url=reverse_lazy("auth:login"), query_string=True)),
path('admin/', admin.site.urls),
path('auth/', include(("authentication.urls", "auth"))),
path('', include(("frontend.urls", "frontend"))),
]