From 91d78b0c7db0cda7766ef15ec30e1ad7476bc7ab Mon Sep 17 00:00:00 2001 From: Jens L Date: Thu, 11 May 2023 13:48:11 +0200 Subject: [PATCH] sources/oauth: re-fix reddit source (#5582) Signed-off-by: Jens Langhammer --- authentik/sources/oauth/types/reddit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/authentik/sources/oauth/types/reddit.py b/authentik/sources/oauth/types/reddit.py index 39018066a..1afd0ca06 100644 --- a/authentik/sources/oauth/types/reddit.py +++ b/authentik/sources/oauth/types/reddit.py @@ -14,7 +14,7 @@ class RedditOAuthRedirect(OAuthRedirect): def get_additional_parameters(self, source): # pragma: no cover return { - "scope": "identity", + "scope": ["identity"], "duration": "permanent", } @@ -37,7 +37,6 @@ class RedditOAuth2Callback(OAuthCallback): self, info: dict[str, Any], ) -> dict[str, Any]: - print(info) return { "username": info.get("name"), "email": None,