flows: add ensure_csrf_cookie() to flow shell view
This commit is contained in:
parent
35ac87ec10
commit
5904070bb2
|
@ -1,12 +1,12 @@
|
||||||
"""flow urls"""
|
"""flow urls"""
|
||||||
from django.urls import path
|
from django.urls import path
|
||||||
|
from django.views.decorators.csrf import ensure_csrf_cookie
|
||||||
|
|
||||||
from authentik.flows.models import FlowDesignation
|
from authentik.flows.models import FlowDesignation
|
||||||
from authentik.flows.views import (
|
from authentik.flows.views import (
|
||||||
CancelView,
|
CancelView,
|
||||||
ConfigureFlowInitView,
|
ConfigureFlowInitView,
|
||||||
FlowExecutorShellView,
|
FlowExecutorShellView,
|
||||||
FlowExecutorView,
|
|
||||||
ToDefaultFlow,
|
ToDefaultFlow,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -42,8 +42,9 @@ urlpatterns = [
|
||||||
ConfigureFlowInitView.as_view(),
|
ConfigureFlowInitView.as_view(),
|
||||||
name="configure",
|
name="configure",
|
||||||
),
|
),
|
||||||
path("b/<slug:flow_slug>/", FlowExecutorView.as_view(), name="flow-executor"),
|
|
||||||
path(
|
path(
|
||||||
"<slug:flow_slug>/", FlowExecutorShellView.as_view(), name="flow-executor-shell"
|
"<slug:flow_slug>/",
|
||||||
|
ensure_csrf_cookie(FlowExecutorShellView.as_view()),
|
||||||
|
name="flow-executor-shell",
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Reference in New Issue