Azure AD B2C与Azure AD的集成允许选择配置文件 [英] Azure AD B2C integration with Azure AD enable to select profiles
问题描述
我有Azure AD B2C,其中有两个身份提供者Google和Azure AD. 另外,我还有本手册. 当我在应用程序中单击Google登录按钮时,可以选择一个帐户,也可以选择登录新帐户.但是,当我选择Azure AD提供程序时,我将无提示地静默登录到我的应用程序. (更改帐户的唯一方法是清除移动设备上的Chrome缓存)
I have Azure AD B2C where two identity providers Google and Azure AD. Also I have custom policy to login made by this manual. When I click on Google login button in my app, there is a choice of accounts, or I can select to login in new account. But when I select Azure AD provider, then I silently login into my app without any prompt. (The only way to change account is to clear cache of Chrome on my mobile device)
是否可以在自定义策略中使Azure AD中的登录启用以其他用户身份登录"?
Is it possible to make in custom policy for login in Azure AD enable 'Login as other user' or not?
推荐答案
我遇到了同样的问题,并通过在Configure
方法中为OpenIdConnectOptions
I faced the same issue and I fixed it by adding below code in Configure
method for OpenIdConnectOptions
options.Events = new OpenIdConnectEvents
{
...
OnRedirectToIdentityProvider = async (context) =>
{
context.ProtocolMessage.Prompt = "select_account";
}
};
您可以共享Startup.cs文件吗?
Can you share your Startup.cs file?
这篇关于Azure AD B2C与Azure AD的集成允许选择配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!