From 6c805bcf323e5f3dec0082f537e3635770328215 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 10 Sep 2021 16:36:10 +0200 Subject: [PATCH] sources/oauth: don't cancel flow when redirecting Signed-off-by: Jens Langhammer --- authentik/sources/oauth/views/redirect.py | 2 -- 1 file changed, 2 deletions(-) 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)