diff --git a/authentik/sources/oauth/views/redirect.py b/authentik/sources/oauth/views/redirect.py index 0f89446aa..39f1faa8b 100644 --- a/authentik/sources/oauth/views/redirect.py +++ b/authentik/sources/oauth/views/redirect.py @@ -6,7 +6,6 @@ from django.urls import reverse from django.views.generic import RedirectView from structlog.stdlib import get_logger -from authentik.flows.views import FlowExecutorView from authentik.sources.oauth.models import OAuthSource from authentik.sources.oauth.views.base import OAuthClientMixin @@ -43,5 +42,4 @@ class OAuthRedirect(OAuthClientMixin, RedirectView): raise Http404(f"source {slug} is not enabled.") client = self.get_client(source, callback=self.get_callback_url(source)) params = self.get_additional_parameters(source) - FlowExecutorView(request=self.request).cancel() return client.get_redirect_url(params)