[No QA] Restore commented-out SAML redirect to signin code#89680
Open
roryabraham wants to merge 3 commits intomainfrom
Open
[No QA] Restore commented-out SAML redirect to signin code#89680roryabraham wants to merge 3 commits intomainfrom
roryabraham wants to merge 3 commits intomainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Covers the case where reauthenticate() is called with no credentials,
verifying that it calls redirectToSignIn('No credentials available') and
releases the network authenticating state instead of proceeding to call
Authenticate with undefined credentials.
Co-authored-by: Cursor <cursoragent@cursor.com>
…sionTest Replaces the standalone ReauthenticationTest file with a single focused test in the existing SessionTest suite. Calls reauthenticate() directly (no API stack needed) — after beforeEach Onyx.clear(), NetworkStore credentials are null, which is the exact condition the fix guards against. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@neil-marcellini Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
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.
Explanation of Change
Restoring code that was commented out during
#fireroom-2026-01-28-user-signout, but never added back. It was not the root cause (see email w/ subject line[Post Mortem] Many Expensifiers were signed out of NewDot, the root cause was in Onyx).Fixed Issues
(partial) #89613
Tests
Unfortunately this can't be trivially retested manually (need an invalidated SAML login), but fortunately we're just adding back code that was meant to be removed temporarily, but which due to an oversight on my part was never added back. So I think the bar for testing can be lower on this one.
Add an automated test.
Offline tests
None.
QA Steps
n/a - we'll follow up in #89613
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari