Closed godefroi closed 4 years ago
There is an issue with token lifetime validation when the JWT does not have a 'nbf' claim. All the tests are done with either 'exp' & 'nbf' present of missing, but not without 'nbf' only.... (since it is very common). I a looking for a fix.
Fixed in version 1.8
I have a token that was retrieved from Auth0, and issued a few minutes ago. When I validate the token with
.EnableLifetimeValidation()
, the validation fails, withStatus
beingNotYetValid
. The code that does the validation is as follows:The output of this validation is as follows:
The current time is definitely between the "issued at" and the "expires at" times, but the validation still fails. Is there something I am doing wrong?