From de3e1c3dbcae66b9b87d48e6ee7bdf0b3d51562d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 7 Sep 2021 11:39:03 +0200 Subject: [PATCH] sources/oauth: fix FlowExecutor view call Signed-off-by: Jens Langhammer --- authentik/sources/oauth/views/redirect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/sources/oauth/views/redirect.py b/authentik/sources/oauth/views/redirect.py index 5d7e06d32..0f89446aa 100644 --- a/authentik/sources/oauth/views/redirect.py +++ b/authentik/sources/oauth/views/redirect.py @@ -43,5 +43,5 @@ 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().cancel() + FlowExecutorView(request=self.request).cancel() return client.get_redirect_url(params)