SSO between .net application and react application

Henrik Lie 101 Reputation points
2022-05-24T07:24:41.487+00:00

I have two applications, one .net and one react-application. But I can't get SSO to work between these two. So when I log in to one of them, then go to the other app it's sending med to the b2c-endpoint and I have to the same login procedure. I thought b2c created a cookie for storing the session to see that the user is already signed in. But the applications is creating their own cookies.

I am using two different apps in my b2c-tenant.

Is it possible for SSO between .net and react? Any tips for what I can do?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,657 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 27,786 Reputation points Microsoft Employee
    2022-05-25T08:10:37.987+00:00

    Hi @Henrik Lie ,

    Thanks for reaching out.

    Your understanding is correct here. Setting Single-sign-on configuration to Tenant allows multi applications in your B2C tenant to share the same user session. Make sure your configration to tenant has been configured properly.

    However, if you are still facing the issue to authenticate for each application, that might be due to usage of the prompt parameter in the authentication request. When prompt=login parameter is present in the authentication request which force the users to enter their credentials despite of Single sign on configuration.

    Try to remove prompt=login from request to authenticate each application using SSO.

    Hope this will help.

    Thanks,
    Shweta

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

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

    0 comments No comments