-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
auth: store period value on tokens created via login #7885
Conversation
@@ -2463,57 +2481,8 @@ func testTokenStore_HandleRequest_Lookup(t *testing.T, batch bool) { | |||
"entity_id": "", | |||
"type": tokenType, | |||
} | |||
|
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 diff makes this looks somewhat erroneous, but this deletion is basically to remove the "// Test via POST" step that seems to be happening twice. I suspect that it's a copy/paste duplication.
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.
This looks really good. Would it be possible to merge and push master to ensure the tests are still passing?
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.
Well done! Thank you!
* auth: store period value on tokens created via login * test: reduce potentially flaskiness due to ttl check * test: govet on package declaration * changelog++ * Temporarily remove CL entry * Add back the CL entry Co-authored-by: Vishal Nayak <[email protected]>
* auth: store period value on tokens created via login * test: reduce potentially flaskiness due to ttl check * test: govet on package declaration * changelog++ * Temporarily remove CL entry * Add back the CL entry Co-authored-by: Vishal Nayak <[email protected]> Co-authored-by: Calvin Leung Huang <[email protected]>
Periodic tokens created directly via the token store as the period value stored as part of its token entry, but the same does not apply for tokens generated via login by auth methods. This PR adds that value to the token entry of tokens generated via login.