I have a 2 application using a single AD B2C
tenant. I want to logout the user from both websites when the user signs out to either one of them. I'm using email for local accounts.
In AAD
, there is a LogoutUrl
registered on each application which receives a GET
request to users currently signed in to. Source
I wonder if there is workaround for AD B2C
like in AAD
.
PS: I am using this repo as reference.
Azure AD B2C doesn't support Single Log Out and we weren't able to find a workaround.
I've understood that in B2C scenarios Microsoft has assumed that IdPs are "social-media" type and considered it is not of end-users interest to be logged out of Facebook when they log out of some service to which they've authenticated via Twitter. Makes sense in that scenario.
However, in government-provided IdP scenarios it is usually a hard requirement to be able to support SLO.
We considered it to be more of a limitation by-design in B2C than technical, so we moved to using another authentication service provider that supports SLO. Apparently a wise choice as I haven't at least heard anything regarding SLO and Azure B2C as of today.
UPDATE
Azure AD B2C now supports Single Logout (SLO) in certain cases and may not actually work with registered SPA applications. Please check official documentation: https://learn.microsoft.com/en-us/azure/active-directory-b2c/session-behavior?pivots=b2c-custom-policy#single-sign-out