authentik.sources.saml.urls

saml sp urls

 1"""saml sp urls"""
 2
 3from django.urls import path
 4
 5from authentik.sources.saml.api.property_mappings import SAMLSourcePropertyMappingViewSet
 6from authentik.sources.saml.api.source import SAMLSourceViewSet
 7from authentik.sources.saml.api.source_connection import (
 8    GroupSAMLSourceConnectionViewSet,
 9    UserSAMLSourceConnectionViewSet,
10)
11from authentik.sources.saml.views import ACSView, InitiateView, MetadataView, SLOView
12
13urlpatterns = [
14    path("<slug:source_slug>/", InitiateView.as_view(), name="login"),
15    path("<slug:source_slug>/acs/", ACSView.as_view(), name="acs"),
16    path("<slug:source_slug>/slo/", SLOView.as_view(), name="slo"),
17    path("<slug:source_slug>/metadata/", MetadataView.as_view(), name="metadata"),
18]
19
20api_urlpatterns = [
21    ("propertymappings/source/saml", SAMLSourcePropertyMappingViewSet),
22    ("sources/user_connections/saml", UserSAMLSourceConnectionViewSet),
23    ("sources/group_connections/saml", GroupSAMLSourceConnectionViewSet),
24    ("sources/saml", SAMLSourceViewSet),
25]
urlpatterns = [<URLPattern '<slug:source_slug>/' [name='login']>, <URLPattern '<slug:source_slug>/acs/' [name='acs']>, <URLPattern '<slug:source_slug>/slo/' [name='slo']>, <URLPattern '<slug:source_slug>/metadata/' [name='metadata']>]
api_urlpatterns = [('propertymappings/source/saml', <class 'authentik.sources.saml.api.property_mappings.SAMLSourcePropertyMappingViewSet'>), ('sources/user_connections/saml', <class 'authentik.sources.saml.api.source_connection.UserSAMLSourceConnectionViewSet'>), ('sources/group_connections/saml', <class 'authentik.sources.saml.api.source_connection.GroupSAMLSourceConnectionViewSet'>), ('sources/saml', <class 'authentik.sources.saml.api.source.SAMLSourceViewSet'>)]