Skip to content

Commit

Permalink
Take care of review comments related to audience list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinod Gupta committed Apr 28, 2017
1 parent d50e53b commit 0bc8ad9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Add support for ECDSA public keys in RFC 4253 (OpenSSH) format [#244][244]
- Renamed commandline script `jwt` to `jwt-cli` to avoid issues with the script clobbering the `jwt` module in some circumstances.
- Better error messages when using an algorithm that requires the cryptography package, but it isn't available [#230][230]

### Fixed
- Allow a list of valid audiences to be configured [#205][205]

[v1.4.3][1.4.3]
-------------------------------------------------------------------------

### Fixed
Expand Down
8 changes: 0 additions & 8 deletions jwt/api_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ def _validate_claims(self, payload, options, audience=None, issuer=None,
if isinstance(leeway, timedelta):
leeway = timedelta_total_seconds(leeway)

if not isinstance(audience, (string_types, type(None), list)):
if not isinstance(audience, list):
raise TypeError('audience must be a string or None')

for aud in audience:
if not isinstance(aud, (string_types, type(None))):
raise TypeError('audience list can only have string')

self._validate_required_claims(payload, options)

now = timegm(datetime.utcnow().utctimetuple())
Expand Down

0 comments on commit 0bc8ad9

Please sign in to comment.