angularazure-ad-b2c-custom-policyazure-ad-b2cmsal-angular

Single Sign Out in Azure AD B2C using Custom policies not working as expected


We are trying to implement SSO Azure AD B2C using Custom policies. We have a single App Registration with 2 redirect URIs for 2 Single Page Applications. The Single Sign In Process is working as expected. But we are facing an issue with Single Sign Out.

Our requirement is to perform logout from one of the SPA then it should be signed out from other applications as well. But with our current implementation other Single Page Applications still have active sessions and are not redirected as expected.

Our current implementation steps are given below

Please guide me to fix this issue and please correct me if I am doing something wrong here.


Solution

  • Front-channel logout URL should point to the address of your application that will be called by the Azure AD B2C during the sign out process. You app then should clear user session and token cache.

    You provided the URL of Azure AD B2C logout URL which is wrong. Logout URL should be like this for instance:

    https://www.myapp.mydomain/logout

    Here is the config of my sample application hosted on the Azure Web App:

    enter image description here