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
|
def get_additional_parameters(self, source): # pragma: no cover
|
||||||
return {
|
return {
|
||||||
"scope": "identity",
|
"scope": ["identity"],
|
||||||
"duration": "permanent",
|
"duration": "permanent",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,6 @@ class RedditOAuth2Callback(OAuthCallback):
|
||||||
self,
|
self,
|
||||||
info: dict[str, Any],
|
info: dict[str, Any],
|
||||||
) -> dict[str, Any]:
|
) -> dict[str, Any]:
|
||||||
print(info)
|
|
||||||
return {
|
return {
|
||||||
"username": info.get("name"),
|
"username": info.get("name"),
|
||||||
"email": None,
|
"email": None,
|
||||||
|
|
Reference in New Issue