[英]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.