diff --git a/src/fts3rest/fts3rest/lib/oauth2provider.py b/src/fts3rest/fts3rest/lib/oauth2provider.py index 0e837a61eb53fc0eea25222252f8cb74e69be1e7..9e3dd1a6f9c02d5941edeba88bccb34b6b1429d0 100644 --- a/src/fts3rest/fts3rest/lib/oauth2provider.py +++ b/src/fts3rest/fts3rest/lib/oauth2provider.py @@ -286,7 +286,7 @@ class FTS3OAuth2ResourceProvider(ResourceProvider): # Verify & Validate if 'wlcg' in issuer: audience = 'https://wlcg.cern.ch/jwt/v1/any' - credential = jwt.decode(access_token, pub_key.export_to_pem(), algorithms=[algorithm], audience=[audience]) + credential = jwt.decode(access_token, pub_key.export_to_pem(), algorithms=[algorithm], audience=audience) else: credential = jwt.decode(access_token, pub_key.export_to_pem(),