Skip to content

Commit 00c3752

Browse files
committed
Merge pull request atlassian#5 from atlassian/update_pyjwt_from_1.3.0_to_1.4.0
Sem-Ver: bugfix update the PyJWT dep from 1.3.0 to 1.4.0.
2 parents 5322bd8 + f5564e7 commit 00c3752

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

atlassian_jwt_auth/verifier.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ def verify_jwt(self, a_jwt, audience, **requests_kwargs):
1717
""" returns the claims of the given jwt iff verification
1818
is successful.
1919
"""
20-
options = {'verify_signature': True}
20+
options = {
21+
'verify_signature': True,
22+
'require_exp': True,
23+
'require_iat': True,
24+
}
2125
key_identifier = key._get_key_id_from_jwt_header(a_jwt)
2226
public_key = self.public_key_retriever.retrieve(
2327
key_identifier, **requests_kwargs)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
cryptography==1.0.2
2-
PyJWT==1.3.0
2+
PyJWT==1.4.0
33
requests==2.7.0
44
CacheControl==0.11.5

0 commit comments

Comments
 (0)