sources/oauth: re-fix reddit source (#5582)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
6c492fbeee
commit
91d78b0c7d
|
@ -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,
|
||||
|
|
Reference in New Issue