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

Add JWT validation leeway in token decoding #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rolandgroen
Copy link
Contributor

JTW decoding now includes an additional 'leeway' parameter in application/oauth_server/views.py, test/test_oauth_flows.py, and other related files. The JWT_VALIDATION_LEEWAY configuration has also been added to the config.py file. These changes provide a margin for potential clock skew when validating the timestamp claims (iat, nbf, exp) of the JWT.

JTW decoding now includes an additional 'leeway' parameter in application/oauth_server/views.py, test/test_oauth_flows.py, and other related files. The JWT_VALIDATION_LEEWAY configuration has also been added to the config.py file. These changes provide a margin for potential clock skew when validating the timestamp claims (`iat`, `nbf`, `exp`) of the JWT.
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.

1 participant