sources/oauth: use oidc preferred_username if set, otherwise nickname

This commit is contained in:
Jens Langhammer 2022-07-19 16:41:10 +00:00
parent 658dc63c4c
commit 327df6529b
1 changed files with 1 additions and 1 deletions

View File

@ -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"),
}