mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-07 08:27:05 +00:00
feat: allow flat claims instead of nested claims as alternative (#19286)
This commit is contained in:
parent
c2f889cf9a
commit
66c5b7380d
1 changed files with 4 additions and 0 deletions
|
|
@ -1023,6 +1023,10 @@ class OAuthManager:
|
|||
for nested_claim in nested_claims:
|
||||
claim_data = claim_data.get(nested_claim, {})
|
||||
|
||||
# Try flat claim structure as alternative
|
||||
if not claim_data:
|
||||
claim_data = user_data.get(oauth_claim, {})
|
||||
|
||||
oauth_roles = []
|
||||
|
||||
if isinstance(claim_data, list):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue