2018-11-16 09:08:15 +00:00
|
|
|
"""passbook SAML IDP URLs"""
|
2018-12-26 13:32:33 +00:00
|
|
|
from django.urls import path
|
2018-11-16 08:10:35 +00:00
|
|
|
|
2019-10-07 14:33:48 +00:00
|
|
|
from passbook.providers.saml import views
|
2018-11-16 08:10:35 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2020-02-18 09:57:30 +00:00
|
|
|
# This view is used to initiate a Login-flow from the IDP
|
2019-12-31 11:51:16 +00:00
|
|
|
path(
|
|
|
|
"<slug:application>/login/initiate/",
|
|
|
|
views.InitiateLoginView.as_view(),
|
|
|
|
name="saml-login-initiate",
|
|
|
|
),
|
2020-02-18 09:57:30 +00:00
|
|
|
# This view is the endpoint a SP would redirect to, and saves data into the session
|
|
|
|
# this is required as the process view which it redirects to might have to login first.
|
|
|
|
path(
|
2020-02-20 15:13:55 +00:00
|
|
|
"<slug:application>/login/", views.LoginBeginView.as_view(), name="saml-login"
|
2020-02-18 09:57:30 +00:00
|
|
|
),
|
2019-12-31 11:51:16 +00:00
|
|
|
path(
|
2020-02-24 13:40:12 +00:00
|
|
|
"<slug:application>/login/authorize/",
|
|
|
|
views.AuthorizeView.as_view(),
|
|
|
|
name="saml-login-authorize",
|
2019-12-31 11:51:16 +00:00
|
|
|
),
|
|
|
|
path("<slug:application>/logout/", views.LogoutView.as_view(), name="saml-logout"),
|
|
|
|
path(
|
|
|
|
"<slug:application>/logout/slo/",
|
|
|
|
views.SLOLogout.as_view(),
|
|
|
|
name="saml-logout-slo",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"<slug:application>/metadata/",
|
|
|
|
views.DescriptorDownloadView.as_view(),
|
|
|
|
name="saml-metadata",
|
|
|
|
),
|
2018-11-16 08:10:35 +00:00
|
|
|
]
|