The aud in a json web token can be a string or an array -- so also deal with the case that it is an array
This commit is contained in:
parent
8547ea71c1
commit
c1c5d02547
|
@ -169,10 +169,8 @@ class AuthenticationService:
|
|||
iat = decoded_token["iat"]
|
||||
if iss != cls.server_url():
|
||||
valid = False
|
||||
elif aud not in (
|
||||
cls.client_id(),
|
||||
"account",
|
||||
):
|
||||
elif aud not in (cls.client_id(), "account") and\
|
||||
aud != [cls.client_id(), "account"]:
|
||||
valid = False
|
||||
elif azp and azp not in (
|
||||
cls.client_id(),
|
||||
|
|
Loading…
Reference in New Issue