Description
Problem Description:
If a user logs in from an ASP.NET Core application using the AddMicrosoftAccount extension method, it is impossible to change user on the aad, because the app does an auto login if only one aad account is logged in.
If 2 aad accounts are logged in, then it waits, and I can choose. This is correct.
If only 1 aad user is logged in, and if I click the popup window to change an account, I then get a Correlation failed exception (If I’m fast enough to complete the login) in the ASP.NET Core application.
The auto login breaks everything.
a) How can you turn this off?
b) How can you logout from the ASP.NET Core application? The signout is not sent to the aad APP Registration. This is possible in the Azure Portal. Maybe I want to logout in the aad using the application.
Code to reproduce:
Azure Portal
Used Azure Active Directory / App registrations to configure the client.