mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-15 11:12:25 -06:00
Fix a data type mismatch when checking OAUTH2 claims
This commit is contained in:
parent
6d7338e64d
commit
5bdccb6e63
@ -240,6 +240,8 @@ class OAuth2Authentication(BaseAuthentication):
|
|||||||
claim = profile.get(key)
|
claim = profile.get(key)
|
||||||
if claim is None:
|
if claim is None:
|
||||||
continue
|
continue
|
||||||
|
if not isinstance(claim, list):
|
||||||
|
claim = [claim]
|
||||||
authorized_claims = additional_claims.get(key)
|
authorized_claims = additional_claims.get(key)
|
||||||
if any(item in authorized_claims for item in claim):
|
if any(item in authorized_claims for item in claim):
|
||||||
reason = "Claim match found. Authorizing"
|
reason = "Claim match found. Authorizing"
|
||||||
|
Loading…
Reference in New Issue
Block a user