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

with HMAC algorithms if VERIFYING_KEY is unset, the exp claim is not verified #626

Closed
simevo opened this issue Oct 3, 2022 · 2 comments
Closed
Assignees
Labels

Comments

@simevo
Copy link

simevo commented Oct 3, 2022

in the config, we have ALGORITHM = HS256 and VERIFYING_KEY is None because "If an HMAC algorithm has been specified by the ALGORITHM setting, the VERIFYING_KEY setting will be ignored"

unexpectedly, after upgrading djangorestframework-simplejwt to v5.2.1 the exp claim is not anymore verified: expired tokens are happily accepted

upon investigation, that's because of PR #605

I think this will suprise many people !

@MWGCLB
Copy link

MWGCLB commented Oct 7, 2022

It surprised me, not very nice. Will it be fixed in future versions?

@Andrew-Chen-Wang
Copy link
Member

Yes, this is a bad bug.

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

No branches or pull requests

3 participants