diff --git a/authentik/sources/oauth/clients/base.py b/authentik/sources/oauth/clients/base.py index 994f1f28b..4ae0023d4 100644 --- a/authentik/sources/oauth/clients/base.py +++ b/authentik/sources/oauth/clients/base.py @@ -72,7 +72,7 @@ class BaseOAuthClient: # Special handling for scope, since it's set as array # to make additional scopes easier args["scope"] = " ".join(sorted(set(args["scope"]))) - params = urlencode(args, quote_via=quote) + params = urlencode(args, quote_via=quote, doseq=True) LOGGER.info("redirect args", **args) return urlunparse(parsed_url._replace(query=params))