-
Notifications
You must be signed in to change notification settings - Fork 964
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
fix: jwt token nonce and expiration time #3967
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests borked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested manually as well
auth
cmd only has --ttl
flag so it's not a global flag. If it is not passed, ttl will be set to 0, disabling the TTL on the token (so it's eternal).
This PR preserves old behaviour but allows for TTLs on the tokens and also makes the token generated non-deterministic per secret.
Fixes #2420