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

allows config for leeway of 'nbf' and 'exp' #67

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

Conversation

arlandism
Copy link

This change lets clients decide how much leeway should apply to the
'exp' and 'nbf' claims coming from the JWTs on inbound requests. It's
a pass-through to the jwt library's functionality.

See golang-jwt/jwt@d489c99
for related changes there.

This change lets clients decide how much leeway should apply to the
'exp' and 'nbf' claims coming from the JWTs on inbound requests. It's
a pass-through to the jwt library's functionality.

See golang-jwt/jwt@d489c99
for related changes there.
@bmorton
Copy link
Contributor

bmorton commented Mar 18, 2022

Nice! This looks like it would fix the issue in #33.

@arlandism
Copy link
Author

We have this running in our production environment with no problems.

@arlandism arlandism marked this pull request as ready for review March 21, 2022 15:14
@arlandism
Copy link
Author

Hey @PrasadG193 or @sahil-lakhwani, is there any chance one of you would have time to review this?

@arlandism
Copy link
Author

Just wanted to drop a note that the underlying change in the jwt-go library supporting this was reverted recently due to backwards-compatibility issues. We had no problem compiling with this library but I understand if we want to hold on bring this change in.

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.

2 participants