Azure Ad B2C auto signin after signup/resetpassword

418 Views Asked by At

In my .net6 razor pages web application, I could see signin, signout, signup and reset password policies working perfectly fine. But after successful execution of a policy journey, say signup or reset password, the web app User.Identity.IsAuthenticated remains true and it shows as the user is logged in and I have to manually click signout in the page to signout the user. Can anyone please help on this issue? I have default configuration in program.cs for MicrosoftIdentityWebAppAuthentication.

1

There are 1 best solutions below

4
rbrayb On BEST ANSWER

This is the default behaviour.

You are signed in until either the session expires or you manually sign out.