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

nbf check allows exact time matches. #88

Merged
merged 1 commit into from Jul 3, 2015
Merged

Conversation

aj-michael
Copy link
Member

From the spec "The nbf (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.". The exact time is not before itself, so it should be valid.

This was annoying me in unit tests in a project of mine.

@aj-michael
Copy link
Member Author

Adding another snippet from http://self-issued.info/docs/draft-jones-json-web-token-06.html

Section 4.1 Reserved Claim Names
"The processing of the nbf claim requires that the current date/time MUST be after or equal to the not-before date/time listed in the nbf claim."

excpt added a commit that referenced this pull request Jul 3, 2015
nbf check allows exact time matches.
@excpt excpt merged commit af6c87a into jwt:master Jul 3, 2015
@excpt
Copy link
Member

excpt commented Jul 3, 2015

Thanks for the commit! 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants