Skip to content

Preserve information about saml session when logging out previous user V2#90449

Open
jnowakow wants to merge 10 commits into
Expensify:mainfrom
software-mansion-labs:revert-90221-revert-89894-jnowakow/fix-saml-slo-once-again
Open

Preserve information about saml session when logging out previous user V2#90449
jnowakow wants to merge 10 commits into
Expensify:mainfrom
software-mansion-labs:revert-90221-revert-89894-jnowakow/fix-saml-slo-once-again

Conversation

@jnowakow

@jnowakow jnowakow commented May 13, 2026

Copy link
Copy Markdown
Contributor

Explanation of Change

SSO login works by redirecting user to www.expensify.com then to IdP and back to App. All necessary information are passed in the URL. One of parameter is isSAML. It's important information stored on session object. Without it logout is not working properly because we do not logout user via SSO. One piece of logic in the OD -> ND redirection is navigation to LogoutPreviousUserPage. This screen ignored isSAML parameter from URL causing problem with logout.

Fixed Issues

$ #86416 (comment)
PROPOSAL: N/A

Tests

  1. Log in via SAML
  2. Log out
  3. Verify that pop up shows up and closes immediately
  4. Log in again and verify that you have to login in on via IdP.
  • Verify that no errors appear in the JS console

Offline tests

N/A

QA Steps

  1. Log in via SAML
  2. Log out
  3. Verify that pop up shows up and closes immediately
  4. Log in again and verify that you have to login in on via IdP.
  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
SLO-fixed.mov

@jnowakow jnowakow requested review from a team as code owners May 13, 2026 09:11
@melvin-bot melvin-bot Bot requested review from flaviadefaria and pecanoro and removed request for a team May 13, 2026 09:11
@melvin-bot

melvin-bot Bot commented May 13, 2026

Copy link
Copy Markdown

@pecanoro 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]

@jnowakow jnowakow requested review from a team and AndrewGable and removed request for pecanoro May 13, 2026 09:12
@melvin-bot melvin-bot Bot requested a review from pecanoro May 13, 2026 09:12
@melvin-bot

melvin-bot Bot commented May 13, 2026

Copy link
Copy Markdown

@pecanoro 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]

@melvin-bot melvin-bot Bot removed the request for review from a team May 13, 2026 09:12
@jnowakow

Copy link
Copy Markdown
Contributor Author

PR got revert last time because of problems on Staging. I'm working setting up account/domain that I could use to test SSO flow on staging

@pecanoro

Copy link
Copy Markdown
Contributor

@huult Since this one is related to this #86416, should you review this one as well?

@AndrewGable AndrewGable requested a review from huult May 13, 2026 20:16
@huult

huult commented May 14, 2026

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Android: mWeb Chrome
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari

@huult

huult commented May 14, 2026

Copy link
Copy Markdown
Contributor

@pecanoro @jnowakow It seems like we reverted this in this PR?

@jnowakow

Copy link
Copy Markdown
Contributor Author

Yes, it's revert of revert. It's the same code as in #89894

@pecanoro

Copy link
Copy Markdown
Contributor

@jnowakow Is it a straight revert? If it's straight revert maybe we don't need full review. Why did we revert it on the first place? There are a couple of things linked

@huult

huult commented May 15, 2026

Copy link
Copy Markdown
Contributor

@jnowakow This was already reverted, so I think we can close this PR. Do we have any plans to open a new PR for a different fix?

@jnowakow

Copy link
Copy Markdown
Contributor Author

@pecanoro, @huult, it's straight revert. Original PR was reverted to fix this issue. Problem is that it was bug was found on staging and I can't test it on this environment. I can only test on dev where everything works fine. I've tried setting up domain that works on staging but without success now. #90114 looks like backend redirects to wrong URL so it's not issue introduced by this PR. I suspect that it's because applausetester+saml1@applause.expensifail.com is redirected back to staging.new.expenisfy.com while App is expecting new.expenisfy.com. That's why I think it would work (and worked previously) on prod.

@jnowakow

Copy link
Copy Markdown
Contributor Author

However, I'll take a look at the links configuration and will see if something can be improved/simplified

@pecanoro

Copy link
Copy Markdown
Contributor

@jnowakow What are next steps then? I am bit confused about the last message 😄

@huult

huult commented May 18, 2026

Copy link
Copy Markdown
Contributor

Yes, we resolved this in the Slack thread:
https://expensify.slack.com/archives/C049HHMV9SM/p1778837894069739?thread_ts=1777980093.597529&cid=C049HHMV9SM

@jnowakow Please close this PR.

@jnowakow

Copy link
Copy Markdown
Contributor Author

Yes, we resolved this in the Slack thread: https://expensify.slack.com/archives/C049HHMV9SM/p1778837894069739?thread_ts=1777980093.597529&cid=C049HHMV9SM

@jnowakow Please close this PR.

@huult it's different issue

@jnowakow

Copy link
Copy Markdown
Contributor Author

@huult, title updated, testing steps remain the same

Comment thread src/libs/actions/Session/index.ts Outdated

// Even though we are on staging the backend will redirect us to production url
if (isWeb && CONFIG.IS_IN_STAGING) {
expectedURL = expectedURL.replace('staging.', '');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like a hack to me. Do we plan to create a URL for staging? Since staging is not supported by the backend, I think we should either add it to beta or disable it on staging instead of replacing the URL with production.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like a hack because it is hack 😅 I only saw one domain (@applause.expensifail.com) that works on staging. I don't have access to it so I don't know how it's configured. If we disable SSO on staging, QA team won't be able to test it. I don't think it's an option.

@AndrewGable AndrewGable May 20, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah let's not do this. We can provide QA team a known working account for production, right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AndrewGable I can set up one account and share it with you and QA for testing.

@jnowakow Can I confirm that QA does not need to test this on staging? If so, do we still need to merge this PR?

@jnowakow jnowakow May 21, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah let's not do this. We can provide QA team a known working account for production, right?

I believe QA team already has account that works on production. Does this mean they should stop testing SSO things on staging?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Andrew is OOO. I'll look for someone else to take it over

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I replied on the Slack thread; it's the same convo here, right? We are just deciding whether to skip QA on staging?

@huult huult May 29, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still under discussion. @jnowakow please let’s check and confirm.

#85937 @jnowakow Does this issue relate to this ticket?

Comment thread config/webpack/webpack.dev.ts Outdated
proxy: [
{
context: ['/api', '/staging', '/chat-attachments', '/receipts'],
context: ['/api', '/staging', '/chat-attachments', '/receipts', '/authentication'],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain why we added authentication to the proxy context?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When running dev build SSO requests were blocked by CORS. Internals have IdP redirecting back to dev web app and lack of this entry broke testing

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnowakow This seems out of scope for this ticket, as I don't see anything about it in the issue description. If we need this change, could you ask the internal team to confirm whether it is required? If they confirm it's needed, we can keep it. otherwise, I'd prefer to remove it.

Comment thread src/CONFIG.ts
CONCIERGE_URL: `${expensifyURL}concierge/`,
RECEIPTS_URL: `${expensifyURL}receipts/`,
SAML_URL: `${expensifyURL}authentication/saml`,
SAML_URL: `${expensifyURLRoot}authentication/saml`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What issue causes us to change the URL to expensifyURLRoot?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aim of this change is to enable SSO testing when App connects with backend via ngrok tunnel

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnowakow Can this be used in production as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, on production it will be just production url

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about that. @pecanoro, do you agree that we should change this URL?

@huult

huult commented May 20, 2026

Copy link
Copy Markdown
Contributor

LogoutPreviousUserPage ignored isSAML parameter from URL preventing correct logout.

@jnowakow Thanks for the update. If possible, could you please add a more detailed explanation of this PR?

@huult

huult commented May 20, 2026

Copy link
Copy Markdown
Contributor
Screen.Recording.2026-05-20.at.10.37.30.mov

I see the issue is happening again. Is this included in this fix?

@huult

huult commented May 20, 2026

Copy link
Copy Markdown
Contributor

Could you sync with main?

@jnowakow

Copy link
Copy Markdown
Contributor Author

@jnowakow Thanks for the update. If possible, could you please add a more detailed explanation of this PR?

@huult done!

@jnowakow

Copy link
Copy Markdown
Contributor Author

Screen.Recording.2026-05-20.at.10.37.30.mov
I see the issue is happening again. Is this included in this fix?

It looks like navigation related issue not connected this one. Looks like when AuthScreens are dismissed PublicScreens show last visible screen which is transition screen

@jnowakow

Copy link
Copy Markdown
Contributor Author

Could you sync with main?

Done!

@pecanoro

Copy link
Copy Markdown
Contributor

@huult Friendly bump!

@huult

huult commented May 28, 2026

Copy link
Copy Markdown
Contributor

@huult Friendly bump!

@pecanoro @jnowakow has a question for the internal team and is waiting for their input: #90449 (comment)

@huult huult mentioned this pull request May 29, 2026
7 tasks
@pecanoro

pecanoro commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

@huult All yours again!

@huult

huult commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

@pecanoro is this PR ready for review again? I don't see @jnowakow pinging for a re-review.

Comment thread src/libs/actions/Session/index.ts Outdated
const isWeb = getPlatform() === CONST.PLATFORM.WEB;
const queryString = isWeb ? `referer=ecash&authToken=${authToken}` : `appversion=${pkg.version}&referer=ecash&authToken=${authToken}`;
const expectedURL = isWeb ? CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL : CONST.SAML_REDIRECT_URL;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this space, it's unnecessary.

// Even if the user was already authenticated in NewDot, we need to reauthenticate them with shortLivedAuthToken,
// because the old authToken stored in Onyx may be invalid.
signInWithShortLivedAuthToken(shortLivedAuthToken);
signInWithShortLivedAuthToken(shortLivedAuthToken, !!isSAML);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this change is similar to your previous change, but it is causing an issue: #90114. Could you please test this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's crucial line of the PR. #90114 is caused by configuration issue on staging. We were discussing it

@huult huult Jun 4, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were discussing it

If possible, could you please mention this discussion here as well? Thanks. It will make future investigations easier if we encounter a similar issue again.

@huult

huult commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Could you check the failed checks?

// Even if the user was already authenticated in NewDot, we need to reauthenticate them with shortLivedAuthToken,
// because the old authToken stored in Onyx may be invalid.
signInWithShortLivedAuthToken(shortLivedAuthToken);
signInWithShortLivedAuthToken(shortLivedAuthToken, !!isSAML);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
signInWithShortLivedAuthToken(shortLivedAuthToken, !!isSAML);
const {isProduction} = useEnvironment();
...
const shouldPassSAML = isProduction ? !!isSAML : undefined;
signInWithShortLivedAuthToken(shortLivedAuthToken, shouldPassSAML);

@jnowakow I think this is only needed for production, so we should add a check like above. Also, please add a comment explaining why we need to pass SAML in production.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it needed only for production? We shouldn't ignore this information on any environment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we use this option for staging, will this issue come back? #90114

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If IdP configuration won't be fixed then probably yes. But adding this check means "fix the bug on production and leave it on staging/dev" so I think it's even more hacky than what I propose earlier

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's different because we don’t currently support staging and dev, so isSAML is only passed in production when calling signInWithShortLivedAuthToken. Adding this as suggested seems reasonable. But if there are concerns, we should also check with @pecanoro and @AndrewGable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dev works if you have correct IdP, so I don't think we should block. But let's wait for @pecanoro or @AndrewGable for their opinion

@jnowakow

jnowakow commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Could you check the failed checks?

Failing tests don't look related. Merging main should fix it

@huult

huult commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

I think the next step is for @AndrewGable to share his thoughts on this.

@huult

huult commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@jnowakow Are you still maintaining this PR? I'm asking because I noticed that you left the Slack group. cc @pecanoro

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.

4 participants