2020-05-07 19:51:06 +01:00
|
|
|
"""flow urls"""
|
2020-05-07 20:30:52 +01:00
|
|
|
from django.urls import path
|
|
|
|
|
2020-05-10 23:49:48 +01:00
|
|
|
from passbook.flows.models import FlowDesignation
|
|
|
|
from passbook.flows.views import (
|
|
|
|
FlowExecutorView,
|
|
|
|
FlowPermissionDeniedView,
|
|
|
|
ToDefaultFlow,
|
|
|
|
)
|
2020-05-07 20:30:52 +01:00
|
|
|
|
|
|
|
urlpatterns = [
|
2020-05-10 23:49:48 +01:00
|
|
|
path("-/denied/", FlowPermissionDeniedView.as_view(), name="denied"),
|
|
|
|
path(
|
|
|
|
"-/default/auth/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.AUTHENTICATION),
|
|
|
|
name="default-auth",
|
|
|
|
),
|
|
|
|
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/password_change/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.PASSWORD_CHANGE),
|
|
|
|
name="default-password-change",
|
|
|
|
),
|
2020-05-09 23:05:36 +01:00
|
|
|
path("<slug:flow_slug>/", FlowExecutorView.as_view(), name="flow-executor"),
|
2020-05-07 20:30:52 +01:00
|
|
|
]
|