sources/oauth: re-fix reddit source (#5582)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-05-11 13:48:11 +02:00 committed by GitHub
parent 6c492fbeee
commit 91d78b0c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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,