sources/oauth: use oidc preferred_username if set, otherwise nickname
This commit is contained in:
parent
658dc63c4c
commit
327df6529b
|
@ -27,7 +27,7 @@ class OpenIDConnectOAuth2Callback(OAuthCallback):
|
|||
info: dict[str, Any],
|
||||
) -> dict[str, Any]:
|
||||
return {
|
||||
"username": info.get("nickname"),
|
||||
"username": info.get("nickname", info.get("prefered_username")),
|
||||
"email": info.get("email"),
|
||||
"name": info.get("name"),
|
||||
}
|
||||
|
|
Reference in New Issue