-
-
Notifications
You must be signed in to change notification settings - Fork 456
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
RFC7519 JWTClaims.validate_iat() doesn't utilise the leeway parameter #564
Comments
@dhallam I don't understand why?
I think you are mistaken it with |
@lepture What I'm looking at is verifying that the As mentioned in square/go-jose#216 there is a test case for an issue date that is set in the future at https://cloud.google.com/iap/docs/query-parameters-and-headers-howto#testing_jwt_verification. |
@dhallam Oh, you mean |
Yes, sorry - I could have been clearer :-) PR raised for review #565 |
I see you've already pushed a PR - will let you run with the best approach. Ping me if you need any feedback. Many thanks. |
Describe the bug
The
JWTClaims.validate_iat()
function in authlib/jose/rfc7519/claims.py doesn't utilise theleeway
parameter. The function should validate that theiat
claim is "reasonable" relative to the current time.Expected behavior
Thevalidate_iat()
function should raise anInvalidTokenError
if theiat
claim value is outside thenow
±leeway
window.The
validate_iat()
function should raise anInvalidTokenError
if theiat
claim value is afternow
+leeway
.Environment:
The text was updated successfully, but these errors were encountered: