简体   繁体   English

无法使用来自我的 asp.net 核心 web 应用程序的 AAD B2C 中的自定义策略登录多租户 Azure AD

[英]unable to sign In for MultiTenant Azure AD using Custom policies in AAD B2C from my asp.net core web app

I have set up multitenant sign in sign up in Azure AD using a B2C custom Policy.我已经使用 B2C 自定义策略在 Azure AD 中设置了多租户登录。

After uploading the policy and testing using Run Now button in Azure portal with a reply url https://jwt.ms and everything worked as expected, I got the token and my user name etc.上传策略并使用 Azure 门户中的“立即运行”按钮进行测试后,回复 url https://jwt.ms并且一切都按预期工作,我得到了我的用户名和我的令牌等。

When I try to sign in with my web app sign in, a dialogue box appeared, when i choose to sign in with social accounts and I pick my AAD Tenant it does not work and results in an error with endpoint:当我尝试使用 web 应用程序登录时,出现一个对话框,当我选择使用社交帐户登录并选择我的AAD 租户时,它不起作用并导致端点错误:

https://localhost:{myport}/MicrosoftIdentity/Account/Error 

with no specific error code.没有特定的错误代码。

I am interested in help on how to debug and resolve this.我对如何调试和解决此问题的帮助感兴趣。

Use the Azure B2C standard customer policy starterpack .使用Azure B2C 标准客户政策 starterpack

Follow this document to configure the multi-tenant sign-in.按照本文档配置多租户登录。

The most important thing is configuring ValidTokenIssuerPrefixes in the TechnicalProfile .最重要的是在TechnicalProfile中配置ValidTokenIssuerPrefixes

The format is:格式为:

<Item Key="ValidTokenIssuerPrefixes">https://login.microsoftonline.com/{tenant id of tenant A},https://login.microsoftonline.com/{tenant id of tenant B}</Item>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Azure AD B2C 使用个人用户帐户登录 ASP.Net Core Web 应用程序 -&gt; API - Sign in to ASP.Net Core Web Application -> API with Individual User Accounts using Azure AD B2C 一个使用 Azure AD B2C 的多个客户端 ID(应用程序 ID)的 ASP.NET Core 2.2 Web API 应用程序 - One ASP.NET Core 2.2 Web API app Using Multiple Client IDs (Application IDs) of Azure AD B2C 使用ASP.NET Core的Azure AD B2C - 无法编辑配置文件 - Azure AD B2C with ASP.NET Core - Unable to go to edit profile 跨 ASP.Net Core Web 应用程序使用 Azure AD B2C Cookie - Use Azure AD B2C Cookie across ASP.Net Core Web Apps 无法使用 asp.net 核心图 API 在 Azure AD B2C 中创建自定义属性 - Can't create custom attributes in Azure AD B2C with asp.net core Graph API ASP.NET Core:Azure AD B2C自助密码重置(注册/登录策略) - ASP.NET Core: Azure AD B2C self service password reset (sign-up/sign-in policy) 如何从 Azure AD B2C 用户商店获取 ASP.NET Core 3.1 中的用户信息? - How to get user information in ASP.NET Core 3.1 from Azure AD B2C user store? ASP.NET Core 3.1 如何使用 Azure AD B2C 返回 401 Unauthorized 而不是 Challenge - ASP.NET Core 3.1 how to return 401 Unauthorized instead of Challenge with Azure AD B2C ASP.NET 浏览器关闭后核心身份验证未保持登录状态(Azure AD B2C) - ASP.NET Core Auth not staying signed in after browser closes (Azure AD B2C) Azure AD B2C 自定义策略,保护 API 连接器 - Azure AD B2C custom policies, securing an API connector
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM