Share via

Azure B2C SAML SLO drops passback parameter on return to SP, breaking downstream OAuth redirect in SMART-on-FHIR flow

Jessica Salinas 0 Reputation points
2026-05-15T16:05:04.8866667+00:00

A B2C SAML SLO round-trip is dropping a query parameter that an Epic MyChart SP relies on to complete an OAuth redirect after patient consent, as part of a SMART-on-FHIR standalone patient launch flow.

Failing redirect chain:

/mychart/Authentication/Saml/Logout?passBack=true&postlogoutmode=oauthredirect

` → 302 https://

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-05-15T16:05:18.57+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more
    1. The provided information only states that Azure AD B2C supports SAML SP-initiated and IdP-initiated flows and SAML-based SLO, but does not describe any behavior about preserving RelayState or arbitrary query parameters on SLO responses back to the SP. The context does not confirm whether B2C preserves or drops RelayState or other passback parameters during SAML SLO.
    2. The context does not contain any information about changes in SAML SLO behavior over time or about specific custom policy updates that would alter how the SLO response is constructed.
    3. The context does not document any mechanism in custom policies to echo arbitrary passback parameters on SLO responses (for example via RelayState mapping or custom claims) for SAML SLO. It only shows how to configure SAML SP applications (reply URL, logout URL) and how to troubleshoot SAML protocol messages using browser tools.

    Given the available information, the only concrete guidance is to use SAML tracing tools (such as SAML DevTools, SAML-tracer, or browser dev tools) to inspect the actual SAMLRequest/SAMLResponse and confirm what, if anything, is being sent as RelayState or equivalent during the SLO round-trip, and to verify the SAML application’s configured logout URL in the B2C application registration.


    References:

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.