This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/authentik/sources/saml/urls.py
Jens L eaa3d11df8
api: modular urls (#5551)
* api: make API urls modular

load API urls from app module's urls file instead of a single static file

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* refactor websocket url mounting

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
2023-05-09 14:46:47 +02:00

19 lines
733 B
Python

"""saml sp urls"""
from django.urls import path
from authentik.sources.saml.api.source import SAMLSourceViewSet
from authentik.sources.saml.api.source_connection import UserSAMLSourceConnectionViewSet
from authentik.sources.saml.views import ACSView, InitiateView, MetadataView, SLOView
urlpatterns = [
path("<slug:source_slug>/", InitiateView.as_view(), name="login"),
path("<slug:source_slug>/acs/", ACSView.as_view(), name="acs"),
path("<slug:source_slug>/slo/", SLOView.as_view(), name="slo"),
path("<slug:source_slug>/metadata/", MetadataView.as_view(), name="metadata"),
]
api_urlpatterns = [
("sources/user_connections/saml", UserSAMLSourceConnectionViewSet),
("sources/saml", SAMLSourceViewSet),
]