flows: remove FlowExecutorShellView
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
de6fa63d21
commit
1fd949d4ec
|
@ -6,7 +6,6 @@ from django.views.generic import RedirectView
|
||||||
from django.views.generic.base import TemplateView
|
from django.views.generic.base import TemplateView
|
||||||
|
|
||||||
from authentik.core.views import impersonate, user
|
from authentik.core.views import impersonate, user
|
||||||
from authentik.flows.views import FlowExecutorShellView
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path(
|
path(
|
||||||
|
@ -40,12 +39,12 @@ urlpatterns = [
|
||||||
# Interfaces
|
# Interfaces
|
||||||
path(
|
path(
|
||||||
"if/admin/",
|
"if/admin/",
|
||||||
ensure_csrf_cookie(TemplateView.as_view(template_name="shell.html")),
|
ensure_csrf_cookie(TemplateView.as_view(template_name="if/admin.html")),
|
||||||
name="if-admin",
|
name="if-admin",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"if/flow/<slug:flow_slug>/",
|
"if/flow/<slug:flow_slug>/",
|
||||||
ensure_csrf_cookie(FlowExecutorShellView.as_view()),
|
ensure_csrf_cookie(TemplateView.as_view(template_name="if/flow.html")),
|
||||||
name="if-flow",
|
name="if-flow",
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -8,7 +8,7 @@ from django.shortcuts import get_object_or_404, redirect
|
||||||
from django.template.response import TemplateResponse
|
from django.template.response import TemplateResponse
|
||||||
from django.utils.decorators import method_decorator
|
from django.utils.decorators import method_decorator
|
||||||
from django.views.decorators.clickjacking import xframe_options_sameorigin
|
from django.views.decorators.clickjacking import xframe_options_sameorigin
|
||||||
from django.views.generic import TemplateView, View
|
from django.views.generic import View
|
||||||
from drf_yasg2.utils import no_body, swagger_auto_schema
|
from drf_yasg2.utils import no_body, swagger_auto_schema
|
||||||
from rest_framework.permissions import AllowAny
|
from rest_framework.permissions import AllowAny
|
||||||
from rest_framework.views import APIView
|
from rest_framework.views import APIView
|
||||||
|
@ -262,17 +262,6 @@ class FlowErrorResponse(TemplateResponse):
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
class FlowExecutorShellView(TemplateView):
|
|
||||||
"""Executor Shell view, loads a dummy card with a spinner
|
|
||||||
that loads the next stage in the background."""
|
|
||||||
|
|
||||||
template_name = "flows/shell.html"
|
|
||||||
|
|
||||||
def get_context_data(self, **kwargs) -> dict[str, Any]:
|
|
||||||
self.request.session[SESSION_KEY_GET] = self.request.GET
|
|
||||||
return super().get_context_data(**kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
class CancelView(View):
|
class CancelView(View):
|
||||||
"""View which canels the currently active plan"""
|
"""View which canels the currently active plan"""
|
||||||
|
|
||||||
|
|
Reference in New Issue