2020-05-07 18:51:06 +00:00
|
|
|
"""flow urls"""
|
2020-05-07 19:30:52 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
2023-05-09 12:46:47 +00:00
|
|
|
from authentik.flows.api.bindings import FlowStageBindingViewSet
|
|
|
|
from authentik.flows.api.flows import FlowViewSet
|
|
|
|
from authentik.flows.api.stages import StageViewSet
|
2020-12-05 21:08:42 +00:00
|
|
|
from authentik.flows.models import FlowDesignation
|
2023-05-09 12:46:47 +00:00
|
|
|
from authentik.flows.views.executor import (
|
|
|
|
CancelView,
|
|
|
|
ConfigureFlowInitView,
|
|
|
|
FlowExecutorView,
|
|
|
|
ToDefaultFlow,
|
|
|
|
)
|
|
|
|
from authentik.flows.views.inspector import FlowInspectorView
|
2020-05-07 19:30:52 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2020-05-10 22:49:48 +00:00
|
|
|
path(
|
2020-05-12 12:49:47 +00:00
|
|
|
"-/default/authentication/",
|
2020-05-10 22:49:48 +00:00
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.AUTHENTICATION),
|
2020-05-12 12:49:47 +00:00
|
|
|
name="default-authentication",
|
2020-05-10 22:49:48 +00:00
|
|
|
),
|
2020-05-10 23:12:57 +00:00
|
|
|
path(
|
|
|
|
"-/default/invalidation/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.INVALIDATION),
|
|
|
|
name="default-invalidation",
|
|
|
|
),
|
2020-06-29 22:11:01 +00:00
|
|
|
path("-/cancel/", CancelView.as_view(), name="cancel"),
|
2020-09-24 18:06:37 +00:00
|
|
|
path(
|
|
|
|
"-/configure/<uuid:stage_uuid>/",
|
|
|
|
ConfigureFlowInitView.as_view(),
|
|
|
|
name="configure",
|
|
|
|
),
|
2020-05-07 19:30:52 +00:00
|
|
|
]
|
2023-05-09 12:46:47 +00:00
|
|
|
|
|
|
|
api_urlpatterns = [
|
|
|
|
("flows/instances", FlowViewSet),
|
|
|
|
("flows/bindings", FlowStageBindingViewSet),
|
|
|
|
("stages/all", StageViewSet),
|
|
|
|
path(
|
|
|
|
"flows/executor/<slug:flow_slug>/",
|
|
|
|
FlowExecutorView.as_view(),
|
|
|
|
name="flow-executor",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"flows/inspector/<slug:flow_slug>/",
|
|
|
|
FlowInspectorView.as_view(),
|
|
|
|
name="flow-inspector",
|
|
|
|
),
|
|
|
|
]
|