Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't fail on ID token expiration #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AntoineMarques
Copy link

This prevented from reading an expired token from cache and refreshing it.
JWT_Exception didn't existed => replaced with UnexpectedValueException used by JWT.
Catches ExpiredException and proceeds.

This prevented from reading an expired token from cache and refreshing it.
JWT_Exception didn't existed => replaced with UnexpectedValueException used by JWT.
Catches ExpiredException and proceeds.
@hajekj
Copy link
Member

hajekj commented Sep 9, 2022

I agree that this can be skipped, especially when retrieving token from cache. I don't think that removing this will have any big impact on security of this library, since token for API scenarios is being validated elsewhere. I will walk through the code once more, just to be very sure but I think it should be fine to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants