From 0131b1f6cc4d1a8b2ba6493725cdb2f13597b126 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 14 Dec 2021 09:34:47 +0100 Subject: [PATCH] sources/oauth: fix wrong redirect URL being generated Signed-off-by: Jens Langhammer --- authentik/sources/oauth/types/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/sources/oauth/types/manager.py b/authentik/sources/oauth/types/manager.py index b70171207..d88215dca 100644 --- a/authentik/sources/oauth/types/manager.py +++ b/authentik/sources/oauth/types/manager.py @@ -49,7 +49,7 @@ class SourceType: "type": ChallengeTypes.REDIRECT.value, "to": reverse( "authentik_sources_oauth:oauth-client-login", - kwargs={"source_slug": self.slug}, + kwargs={"source_slug": source.slug}, ), } )