authentik/passbook/flows/urls.py

50 lines
1.4 KiB
Python
Raw Normal View History

"""flow urls"""
from django.urls import path
2020-05-10 23:49:48 +01:00
from passbook.flows.models import FlowDesignation
from passbook.flows.views import (
2020-09-24 19:06:37 +01:00
CancelView,
ConfigureFlowInitView,
FlowExecutorShellView,
2020-05-10 23:49:48 +01:00
FlowExecutorView,
ToDefaultFlow,
)
urlpatterns = [
2020-05-10 23:49:48 +01:00
path(
"-/default/authentication/",
2020-05-10 23:49:48 +01:00
ToDefaultFlow.as_view(designation=FlowDesignation.AUTHENTICATION),
name="default-authentication",
2020-05-10 23:49:48 +01:00
),
path(
"-/default/invalidation/",
ToDefaultFlow.as_view(designation=FlowDesignation.INVALIDATION),
name="default-invalidation",
),
2020-05-10 23:49:48 +01:00
path(
"-/default/recovery/",
ToDefaultFlow.as_view(designation=FlowDesignation.RECOVERY),
name="default-recovery",
),
path(
"-/default/enrollment/",
ToDefaultFlow.as_view(designation=FlowDesignation.ENROLLMENT),
name="default-enrollment",
),
path(
"-/default/unenrollment/",
ToDefaultFlow.as_view(designation=FlowDesignation.UNRENOLLMENT),
name="default-unenrollment",
),
path("-/cancel/", CancelView.as_view(), name="cancel"),
2020-09-24 19:06:37 +01:00
path(
"-/configure/<uuid:stage_uuid>/",
ConfigureFlowInitView.as_view(),
name="configure",
),
path("b/<slug:flow_slug>/", FlowExecutorView.as_view(), name="flow-executor"),
path(
"<slug:flow_slug>/", FlowExecutorShellView.as_view(), name="flow-executor-shell"
),
]