mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
oidc: pick up username correctly
This commit is contained in:
parent
14398ab628
commit
8215aa36d0
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ class OAuthManager:
|
||||||
username_claim = auth_manager_config.OAUTH_USERNAME_CLAIM
|
username_claim = auth_manager_config.OAUTH_USERNAME_CLAIM
|
||||||
|
|
||||||
name = user_data.get(username_claim)
|
name = user_data.get(username_claim)
|
||||||
if not isinstance(user, str):
|
if not isinstance(name, str):
|
||||||
name = email
|
name = email
|
||||||
|
|
||||||
role = self.get_user_role(None, user_data)
|
role = self.get_user_role(None, user_data)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue