-
Notifications
You must be signed in to change notification settings - Fork 464
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 cannot be disabled #502
Comments
After looking at the source code, the handling of Lines 165 to 168 in d6b1e4e
|
Check this out: https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1
Are you confusing I agree that the validation parameter's name is confusing (incorrect), issued -> something else. But what would be a better, yet readable, name? Can you describe your scenario in which you need to validate the In AAD for example, both claims usually have the same value. |
Sorry, I meant
I don't really need to validate
A parameter named |
To be honest, I don't remember why or how I (or maybe it was an OSS contribution by someone else) came up with this name. Both properties mean "whether the token is valid", one being "already valid" and the other "still valid". I guess because the latter is Expiration, the opposite to it was minted as Issuance. Which you're right, is a different claim. Long story short. Do you mind submitting a change to add a new property and mark the old one as |
Ping on a contribution to the project. Thanks! |
For some reasons
ValidationParameters
hasValidateIssuedTime
andValidateExpirationTime
, but notValidateNotBeforeTime
. Additionally, there is no way to manually disable this anywhere.The text was updated successfully, but these errors were encountered: