question

HenrikLie-4901 avatar image
0 Votes"
HenrikLie-4901 asked ShwetaMathur commented

SSO between .net application and react application

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?

azure-ad-b2c
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @HenrikLie-4901 ,

Just checking in to see if the below answer helped. If this answers your query, please don’t forget to click "Accept the answer" and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.

Thanks,
Shweta



0 Votes 0 ·

1 Answer

ShwetaMathur avatar image
0 Votes"
ShwetaMathur answered

Hi @HenrikLie-4901,

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.