fix(auth): raise default session TTL from 2 h to 7 d - #21
Merged
Conversation
Operators hitting 'Not logged in. Run deltix login first.' after a short break were hitting the 2-hour refresh-token TTL. Combined with the v0.7.10 access-token auto-refresh, the refresh-token only needs to outlive the longest gap between operator sessions. 7 days covers a long weekend; every /refresh slides the window so active operators effectively stay logged in. Override the env var for higher-security installations. 277 unit tests pass; lint clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Operators were hitting 'Not logged in' after short breaks because the refresh-token TTL was 2 hours. Combined with v0.7.10 access-token auto-refresh, the refresh token only needs to outlive the longest gap between operator sessions. 7 days covers a long weekend; every /refresh slides the window out so active operators effectively stay logged in. Override for higher security.
277 unit tests pass; lint clean.