Skip to content
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

STCOR-930 correctly dispatch rtrFlsWarningTimeout #1579

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

zburke
Copy link
Member

@zburke zburke commented Dec 23, 2024

setRtrFlsWarningTimeout() now sends rtrFlsWarningTimeout rather than rtrFlsTimeout. This bug was introduced in PR #1511 (onto keycloak-quesnelia), which looks like a bad copy-pasta from PR #1510 (onto keycloak-ramsons).

When RTR is correctly configured such that sessions end at a fixed (static) datestamp, this change will have no effect: the original timer will not be canceled when the tokens rotate, but it won't matter because the end-point isn't moving, meaning the original timer will remain accurate.

When RTR is incorrectly configured, however, and a session's end-point is extended on rotation as in a sliding window, this change resolves a bug that would cause the session-timeout banner to display a "Time remaining: 00:00" message without actually ending the session. This occurred because the original timer would not be canceled when the tokens rotated even though a new, later end-point had been established.

Refs STCOR-930

`setRtrFlsWarningTimeout()` now sends `rtrFlsWarningTimeout` rather than
`rtrFlsTimeout`.

When RTR is correctly configured such that sessions end at a fixed
(static) datestamp, this change will have no effect: the original timer
will not be canceled when the tokens rotate, but it won't matter because
the end-point isn't moving, meaning the original timer will remain
accurate.

When RTR is incorrectly configured, however, this change resolves a bug
that would cause the session-timeout banner to display a "Time
remaining: 00:00" message without actually ending the session. This
occurred because the original timer would not be canceled when the
tokens rotated even though a new, later endpoint had been established.

Refs STCOR-930
Copy link

github-actions bot commented Dec 23, 2024

BigTest Unit Test Statistics

    1 files  ±0      1 suites  ±0   9s ⏱️ ±0s
266 tests ±0  260 ✔️ ±0  6 💤 ±0  0 ±0 
269 runs  ±0  263 ✔️ ±0  6 💤 ±0  0 ±0 

Results for commit 36bcc37. ± Comparison against base commit 070f7ca.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 23, 2024

Jest Unit Test Statistics

240 tests  ±0   240 ✔️ ±0   1m 22s ⏱️ -1s
  45 suites ±0       0 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit 36bcc37. ± Comparison against base commit 070f7ca.

♻️ This comment has been updated with latest results.

@zburke zburke merged commit e81394a into keycloak-quesnelia Dec 26, 2024
6 checks passed
@zburke zburke deleted the STCOR-930 branch December 26, 2024 14:44
@zburke zburke restored the STCOR-930 branch December 26, 2024 14:44
@zburke zburke deleted the STCOR-930 branch December 26, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants