Demonware / jose

Python implementation of the Javascript Object Signing and Encryption (JOSE) framework (https://datatracker.ietf.org/wg/jose/charter/)
BSD 3-Clause "New" or "Revised" License
95 stars 34 forks source link

Handled expiration exceptions during selection of decryption method. #21

Closed yuriikonovaliuk closed 8 years ago

yuriikonovaliuk commented 8 years ago

decrypt chooses decrypt method (legacy or spec-compliant) using exceptions. In this commit special treatment for failures due to expiration is added. If token decryption failed due to expiration we do not want to try the other decryption method. In addition we no longer miss expiration exceptions in such cases.

nmurtagh commented 8 years ago

👍

kevsullivan commented 8 years ago

:+1:

nmurtagh commented 8 years ago

👍 merge!