-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STCOR-868 backport idle-session timeout and fixed-length-session time…
…out (#1507) Q shipped with a very minimal refresh-token-rotation implementation. In environments with long AT expirations, this doesn't pose much of a problem, but when sessions last less than, say, eight hours, the shortcomings become painfully apparent. Here's a feature summary: * STCOR-776 idle session timeout * STCOR-787 use stripes-config::config.tenantOptions for all tenant-related data * STCOR-864 do not render ModuleContainer until discovery is complete [bug fix] * STCOR-865 consolidate /logout API calls into /logout and /logout-timeout UI routes * STCOR-866 start the RTR cycle when restoring an existing session [bug fix] * STCOR-862 fixed-length session timeout And a commit summary: * (cherry picked from commit 39d1fc9) * (cherry picked from commit be7f076) * (cherry picked from commit 99b8948) * (cherry picked from commit e93a5af) * (cherry picked from commit a9b860d) * (cherry picked from commit eeaa34a) * (cherry picked from commit 5bc64ce) * (cherry picked from commit 2e162f6) * (cherry picked from commit e738a2f) * (cherry picked from commit eed1ba5) * (cherry picked from commit 6201292) * (cherry picked from commit 8daa267) * (cherry picked from commit f93f21d) * (cherry picked from commit 8b5274e) See those commits for detailed explanations of the changes. Configure IST and FLST as follows in `stripes.config.js`: ``` config: { //... useSecureTokens: true, rtr: { // IST: how long before an idle session is killed? default: 60m. // this value must be shorter than the RT's TTL. // must be a string parseable by ms, e.g. 60s, 10m, 1h idleSessionTTL: '10m', // IST: how long to show the "warning, session is idle" modal? default: 1m. // this value must be shorter than the idleSessionTTL. // must be a string parseable by ms, e.g. 60s, 10m, 1h idleModalTTL: '30s', // IST: which events constitute "activity" that prolongs a session? // default: keydown, mousedown activityEvents: ['keydown', 'mousedown', 'wheel', 'touchstart', 'scroll'], // FLST: how long to show the "session ending" warning before it ends? default: 1m // must be a string parseable by ms, e.g. 60s, 10m, 1h fixedLengthSessionWarningTTL: '30s', } } ``` Turn on the logging channels `rtr` and `rtrv` (verbose) for IST logging, `rtr-fls` for FLST logging. --------- Co-authored-by: Ryan Berger <rberger@ebsco.com>
- Loading branch information
1 parent
3fef2ba
commit 3c10177
Showing
55 changed files
with
3,005 additions
and
1,133 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.