Thanks for reaching out.
It seems like you are using ASP.NET Core and OpenID Connect for authentication. The account selection popup window appears when there are multiple accounts signed in.
To bypass this window and log out completely, you can add the prompt=none
parameter to the logout request. This parameter tells the identity provider to not display any user interaction, and to fail the request if the user is not already authenticated.
Here's an example of how you can modify your signout code to include the prompt=none
parameter:
return SignOut(new AuthenticationProperties
{ RedirectUri = "sampleLog",
Parameters =
{
{ "prompt", "none" }
}
},
CookieAuthenticationDefaults.AuthenticationScheme, OpenIdConnectDefaults.AuthenticationScheme);
This should log out the user completely without displaying the account selection popup window.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.