Skip to content

Commit

Permalink
Fixing error message with missing audience
Browse files Browse the repository at this point in the history
  • Loading branch information
djw8605 committed Mar 15, 2018
1 parent 747b649 commit 8be2680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,4 @@ rarely used. Users affected by this should upgrade to 3.3+.
[315]: https://github.com/jpadilla/pyjwt/pull/315
[316]: https://github.com/jpadilla/pyjwt/pull/316
[7c1e61d]: https://github.com/jpadilla/pyjwt/commit/7c1e61dde27bafe16e7d1bb6e35199e778962742
[336]: https://github.com/jpadilla/pyjwt/pull/336
2 changes: 1 addition & 1 deletion jwt/api_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _validate_aud(self, payload, audience):
if audience is None and 'aud' in payload:
# Application did not specify an audience, but
# the token has the 'aud' claim
raise InvalidAudienceError('Audience is specified in the payload, but not the application')
raise InvalidAudienceError('Invalid audience')

audience_claims = payload['aud']

Expand Down

0 comments on commit 8be2680

Please sign in to comment.