Skip to content

Issue with {"msg": "Invalid audience" } #169

@piotrkakiet

Description

@piotrkakiet

Hi, I am trying to run my application using jwt in query string. My payload contains aud and my app coinfig has JWT_DECODE_AUDIENCE property set but somehow flask_jwt_extended doesn't load it hence I get exception thrown in api_jwt.py::_validate_aud in sect```
ion
if audience is None and 'aud' in payload:
# Application did not specify an audience, but
# the token has the 'aud' claim
raise InvalidAudienceError('Invalid audience')

I am using 

Flask-JWT-Extended -> 3.10.0
PyJWT -> 1.6.4 

Is anyone aware of this issue




Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions