diff --git a/authentik/core/templates/if/end_session.html b/authentik/core/templates/if/end_session.html deleted file mode 100644 index e6bfccb1b..000000000 --- a/authentik/core/templates/if/end_session.html +++ /dev/null @@ -1,43 +0,0 @@ -{% extends 'login/base_full.html' %} - -{% load static %} -{% load i18n %} - -{% block title %} -{% trans 'End session' %} - {{ tenant.branding_title }} -{% endblock %} - -{% block card_title %} -{% blocktrans with application=application.name %} -You've logged out of {{ application }}. -{% endblocktrans %} -{% endblock %} - -{% block card %} -
-

- {% blocktrans with application=application.name branding_title=tenant.branding_title %} - You've logged out of {{ application }}. You can go back to the overview to launch another application, or log out of your {{ branding_title }} account. - {% endblocktrans %} -

- - - {% trans 'Go back to overview' %} - - - - {% blocktrans with branding_title=tenant.branding_title %} - Log out of {{ branding_title }} - {% endblocktrans %} - - - {% if application.get_launch_url %} - - {% blocktrans with application=application.name %} - Log back into {{ application }} - {% endblocktrans %} - - {% endif %} - -
-{% endblock %} diff --git a/authentik/core/urls.py b/authentik/core/urls.py index 0914d4e88..2a3e8ca38 100644 --- a/authentik/core/urls.py +++ b/authentik/core/urls.py @@ -20,7 +20,6 @@ from authentik.core.api.users import UserViewSet from authentik.core.views import apps from authentik.core.views.debug import AccessDeniedView from authentik.core.views.interface import FlowInterfaceView, InterfaceView -from authentik.core.views.session import EndSessionView from authentik.root.asgi_middleware import SessionMiddleware from authentik.root.messages.consumer import MessageConsumer from authentik.root.middleware import ChannelsLoggingMiddleware @@ -55,11 +54,6 @@ urlpatterns = [ ensure_csrf_cookie(FlowInterfaceView.as_view()), name="if-flow", ), - path( - "if/session-end//", - ensure_csrf_cookie(EndSessionView.as_view()), - name="if-session-end", - ), # Fallback for WS path("ws/outpost//", InterfaceView.as_view(template_name="if/admin.html")), path( diff --git a/authentik/core/views/session.py b/authentik/core/views/session.py deleted file mode 100644 index 11d5ad940..000000000 --- a/authentik/core/views/session.py +++ /dev/null @@ -1,22 +0,0 @@ -"""authentik Session Views""" -from typing import Any - -from django.shortcuts import get_object_or_404 -from django.views.generic.base import TemplateView - -from authentik.core.models import Application -from authentik.policies.views import PolicyAccessView - - -class EndSessionView(TemplateView, PolicyAccessView): - """Allow the client to end the Session""" - - template_name = "if/end_session.html" - - def resolve_provider_application(self): - self.application = get_object_or_404(Application, slug=self.kwargs["application_slug"]) - - def get_context_data(self, **kwargs: Any) -> dict[str, Any]: - context = super().get_context_data(**kwargs) - context["application"] = self.application - return context