mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-28 01:41:13 -06:00
Fix more data type mismatch when checking OAUTH2 claims
This commit is contained in:
parent
0bc044fa67
commit
23c618e1c9
@ -243,6 +243,8 @@ class OAuth2Authentication(BaseAuthentication):
|
||||
if not isinstance(claim, list):
|
||||
claim = [claim]
|
||||
authorized_claims = additional_claims.get(key)
|
||||
if not isinstance(authorized_claims, list):
|
||||
authorized_claims = [authorized_claims]
|
||||
if any(item in authorized_claims for item in claim):
|
||||
reason = "Claim match found. Authorizing"
|
||||
return (True, reason)
|
||||
|
Loading…
Reference in New Issue
Block a user