Azure B2C SSO Single Log out

Fouad S 20 Reputation points
2023-01-30T16:55:36.05+00:00

Hi,

I have been trying to implement a SSO Log out with two of our web applications. We currently have a web application which is running on .NET Framework (Web App A) & a Next JS Web App (Web App B) using the same Tenant. I have been able to successfully enable the SSO which is working between both Applications.

However, I am unable to get the SSO Single Log out to work. Both Web Apps are registered within the Azure Portal under the same tenant and I have followed the documentation referenced below:

https://learn.microsoft.com/en-us/azure/active-directory-b2c/session-behavior?pivots=b2c-custom-policy#single-sign-out

I followed the documentation above and we're using OIDC.

When I sign out of Web App A I expect the Web App B to be signed out upon the next request. However this doesn't seem to the case and vice versa.

I was wondering if anyone could point me in the right direction.

Thank you very much

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,458 questions
{count} votes

Accepted answer
  1. Shweta Mathur 27,381 Reputation points Microsoft Employee
    2023-02-01T10:16:28.7833333+00:00

    Hi @Fouad S ,

    Thanks for reaching out.

    I understand you are trying to sign the user out of all applications which have an active session using Single Sign Out.

    For OpenID Connect or OAuth2 applications, you have to configure "Front-channel logout URL" while registering your application with logout URL.

    When Azure AD B2C receives the logout request, it uses a front-channel HTML iframe to send an HTTP request to the registered logout URL of each participating application that the user is currently signed in.

    During the sign-out, Azure AD B2C simultaneously sends an HTTP request to the registered logout URL of all the applications that the user is currently signed in to sign out from everywhere.

    Hope this will help.

    Thanks,

    Shweta


    Please remember to "Accept Answer" if answer helped you.


0 additional answers

Sort by: Most helpful