You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was an issue found during the work I did for #497.
What
Passing -Infinity, Infinity and NaN for nbf in the payload is not caught by the claim validation. Since these values all JSON.stringify to null, they should be treated similar to passing null to nbf.
The text was updated successfully, but these errors were encountered:
MitMaro
changed the title
-Infinity, Infinity and NaN do not fail "nbf" claim validation
-Infinity, Infinity and NaN do not fail "nbf" claim validation
Jun 26, 2018
MitMaro
changed the title
-Infinity, Infinity and NaN do not fail "nbf" claim validation
-Infinity, Infinity and NaN do not fail "nbf" and "exp" claim validation
Jun 26, 2018
This was an issue found during the work I did for #497.
What
Passing
-Infinity
,Infinity
andNaN
fornbf
in the payload is not caught by the claim validation. Since these values allJSON.stringify
tonull
, they should be treated similar to passingnull
tonbf
.Test Case
Expected Output
Error with message
"nbf" should be a number of seconds
for eachsign
call.Actual Output
Which decodes as:
The text was updated successfully, but these errors were encountered: