I have an ASP.Net Core application that connects to Azure Active Directory. The sign-on works great, but when signing out I want it to happen immediately without having to go through the "Pick an Account" screen in Azure AD.
I've used the sample app (https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2) and modified the startup method:
services.Configure<OpenIdConnectOptions>(AzureADDefaults.OpenIdScheme, options =>
{
options.Authority = options.Authority + "/v2.0/";
options.SaveTokens = true;
}
I read that SaveTokens should cause id_token_hint to be set on logout (assuming this will bypass the logout screen) but that's not happening.
How do I make the application sign out immediately and not go to Azure's logout screen?