Azure AD B2C SPA Unable to do single sign out.

Md Aaqib Jawed 0 Reputation points
2024-01-10T12:51:33.6133333+00:00

I am trying to implement SSO Single sign out with reactjs SPA registered with Azure AD B2C.

I have added a logout component in Reactjs.

import { React } from "react";
import { useMsal } from "@azure/msal-react";

export function Logout() {
  const { instance } = useMsal();

  instance.logoutRedirect({
    account: instance.getActiveAccount(),
    onRedirectNavigate: false,
  });

  return <div>Logout</div>;
}

I have configured the Front-channel logout URL for both the app.

But when i do signout from one app the other app is still logged in.

Please help me with proper guidance.

Thanks,

Aaqib.

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

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

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