Hello,
While reading the source code of this library I noticed something strange:
|
# verify token is expired |
|
claims = {'ver': 1, |
|
'jti': 'test_jti_str', |
|
'iss': issuer, |
|
'iat': iss_time, |
|
'exp': iss_time-300, |
|
'uid': 'test_uid', |
|
'scp': ['openid'], |
|
'sub': 'test_jwt@okta.com'} |
|
with pytest.raises(JWTValidationException): |
|
jwt_verifier.verify_expiration('test_token') |
|
|
|
|
The variable claims is never used again so is basically useless. Mistake? bad copy/paste?
Hello,
While reading the source code of this library I noticed something strange:
okta-jwt-verifier-python/tests/unit/test_jwt_verifier.py
Lines 314 to 326 in 17ec758
The variable
claimsis never used again so is basically useless. Mistake? bad copy/paste?