-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
nbf validation issue #20
Comments
or maybe if nbf is used, we can adjust exp by adding maxage while generating jwt? |
and thank you for reporting issue 👍 |
I think of
|
i meant to say in addition to though. |
oh yes, a sec |
in the "main" branch? |
Oh I just saw that for the |
ok then 😁 edit: however because of the check equation
we are good |
oh i meant the Line 88 in 424a1d6
That is for an upper interval check, but the leeway is subtracted. |
iat is, like you said, confusing. some implementations use it the same way as nbf. the rfc is at: https://tools.ietf.org/html/rfc7519#section-4.1.6 i will compare with other impls and see what we can do here (in a few days) |
Hi, in the current version:
php-jwt/src/ValidatesJWT.php
Line 89 in 926ef39
That line should be:
When checking the
nbf
("not before") time, then the "max age" value is not relevant.Let's see an example:
Then the current code would say:
nbf
check because:But it should only subtract the leeway, and leave the irrelevant "max age" out of this:
nbf
check is successful, because:The text was updated successfully, but these errors were encountered: