-
Notifications
You must be signed in to change notification settings - Fork 331
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 TTL to STS #7605
Add TTL to STS #7605
Conversation
♻️ PR Preview 2421a3f has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
8f0a0c1
to
8211282
Compare
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.
Looks good
few minor comments
type: integer | ||
format: int64 | ||
description: | | ||
The time-to-live for the generated token in seconds. The maximum |
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.
I'm not sure I understand the second sentence here
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.
🤦♂️
@@ -1818,7 +1824,7 @@ paths: | |||
post: | |||
tags: | |||
- experimental | |||
operationId: STSLogin | |||
operationId: stsLogin # change to stsLogin |
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.
Leftover comment?
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.
Thanks
@@ -536,7 +539,7 @@ func (c *Controller) Login(w http.ResponseWriter, r *http.Request, body apigen.L | |||
expires := loginTime.Add(duration) | |||
secret := c.Auth.SecretStore().SharedSecret() | |||
|
|||
tokenString, err := GenerateJWTLogin(secret, user.Username, loginTime.Unix(), expires.Unix()) |
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.
now you're changing it back? 😅
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.
Yes, sorry 🙏
The time-to-live for the generated token in seconds. The maximum | ||
value is 3600 seconds (1 hour) max is 12 hours. |
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.
The time-to-live for the generated token in seconds. The maximum | |
value is 3600 seconds (1 hour) max is 12 hours. | |
The time-to-live for the generated token in seconds. | |
The default value is 3600 seconds (1 hour) maximum time allowed is 12 hours. |
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.
LGTM
Description
This PR includes: