AD B2C SSO between two applications

Vasant Horapeti 1 Reputation point
2022-02-27T10:22:57.473+00:00

We have two applications which are AD B2C for SSO

  1. App 1 - Sitecore (Based on .NET core)
  2. App 2 - React Web app (SPA)

We would like to have SSO behavior between these two applications. Currently we have the policy set to as follows . <SingleSignOn Scope="Tenant" />

Both the applications are using same tenant. But still the if App1 sign in, when clicked on App2, it is not automatically taking the signed in session, instead, it is asking to sign-in again on App2, What is the configuration we have to achieve SSO behavior?

178150-image.png

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,871 Reputation points Moderator
    2022-02-27T10:38:01.25+00:00

    Hi @Vasant Horapeti • Thank you for reaching out.

    From your question, I understood that in your custom policy you have set Single-sign-on configuration to Tenant. Despite that, when you authenticate two different applications via the same User flow, you have to authenticate for each application.

    The only reason I can think of, that could be contributing to the issue, is the usage of the prompt parameter in the authentication request. This parameter indicates the type of user interaction that is required. When prompt=login parameter is present in the authentication request, it forces the user to enter their credentials on that request, negating single-sign on.

    If you are passing prompt=login in authentication request, try removing it and test again.

    Other valid values that can be set for this parameter, are:

    • prompt=none is the opposite. It ensures that the user isn't presented with any interactive prompt. If the request can't be completed silently by using single-sign on, the Microsoft identity platform returns an interaction_required error.
    • prompt=consent triggers the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app.
    • prompt=select_account interrupts single sign-on providing account selection experience listing all the accounts either in session or any remembered account or an option to choose to use a different account altogether.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


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.