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
735e7f726c
commit
c8a83f80b6
|
@ -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