-
Notifications
You must be signed in to change notification settings - Fork 376
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
Verify exp claim without verifying jwt #281
Comments
Hi @jamesstonehill, Thanks for the detailed report. I'll label this as a feature request. The currently the verification will only check claims when the signature can be verified. The only workaround for this is extracting the payload and handle it using custom code. payload, header = JWT.decode token, nil, false
puts payload.inspect |
👍 to this |
I opened a PR for this issue #287 |
@wenderjean Cleary yes. :) |
Is it by design that verification passes when I want to ensure that an exp is set and this seemed like a good way to achieve that. I'm aware that I can check |
@dkam I believe this is intentional and correct behaviour. Because the If your policy is to require an |
Thank @danleyden - required claim does exactly what I was after. |
There is no way to verify the exp claim without verifying the JWT. It would be nice to be able to verify a specific claim.
The text was updated successfully, but these errors were encountered: