Repository navigation
Conversation
- Keep legacy browser sessions while the UTS switch is unset. - Keep the browser session handle until sign-out completes.
- Record the exact non-authorizing legacy session claim in the staff inventory. - Apply the pinned formatter to the two browser tests.
This branch has not been deployed
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.
What changes
Add the Web browser session flow for the User Token Service (UTS) behind
UTS_BROWSER_SESSIONS. Keep the flag off and keep the legacy sign-in and session behavior. Scope the new flow to the configured environment and its registered callback.When enabled, the browser reads the Web session endpoint instead of using the NextAuth refresh path. An unavailable session check keeps the current identity and shows a retry. A status read does not finish a sign-out. Keep the session handle until the explicit end succeeds, so a retry can finish revocation publication.
This pull request does not enable the flag or change production settings. Revert the code to roll back this flag-off change. The separate session rollout plan governs recovery after activation.
Verification
openai-codex/gpt-6.2-sol), security and performance (Claude Opus 5.5): final exact-head reviews in progress. CI starts with this pull request.Request cost
With the flag off, the browser keeps the existing session endpoint and makes no new UTS session request. When enabled, the Web session check uses the existing focus and freshness policy. It does not add a polling interval. A failed sign-out retries only after the user requests it.