diff options
| author | José Padilla <jpadilla@webapplicate.com> | 2014-12-31 11:44:35 -0400 |
|---|---|---|
| committer | José Padilla <jpadilla@webapplicate.com> | 2014-12-31 11:44:35 -0400 |
| commit | 5853ea7a5062f2c43263c3eed34579916f185782 (patch) | |
| tree | b398184b456e8f6edab8ce679879481b8ea0c9b0 /jwt | |
| parent | 068979f5f203c82272fa51377b6f0c24bfa10ad9 (diff) | |
| download | pyjwt-5853ea7a5062f2c43263c3eed34579916f185782.tar.gz | |
Fixes #55
Diffstat (limited to 'jwt')
| -rw-r--r-- | jwt/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jwt/__init__.py b/jwt/__init__.py index 9b49194..e52c612 100644 --- a/jwt/__init__.py +++ b/jwt/__init__.py @@ -387,7 +387,7 @@ def verify_signature(payload, signing_input, header, signature, key='', audience = kwargs.get('audience') - if audience: + if audience is not None: if isinstance(audience, list): audiences = audience else: @@ -398,6 +398,6 @@ def verify_signature(payload, signing_input, header, signature, key='', issuer = kwargs.get('issuer') - if issuer: + if issuer is not None: if payload.get('iss') != issuer: raise InvalidIssuer('Invalid issuer') |
