Commit 53cc2720 authored by Carlos Jenkins's avatar Carlos Jenkins Committed by Simo Sorce

Fixed nbf incorrect validation.

Reviewed-by: 's avatarSimo Sorce <simo@redhat.com>

Fixes #71
Closes #72
parent 09d05131
......@@ -340,7 +340,7 @@ class JWT(object):
if 'exp' in claims:
self._check_exp(claims['exp'], time.time(), self._leeway)
if 'nbf' in claims:
self._check_exp(claims['nbf'], time.time(), self._leeway)
self._check_nbf(claims['nbf'], time.time(), self._leeway)
def _check_provided_claims(self):
# check_claims can be set to False to skip any check
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment