简体   繁体   English

Azure AD B2C 登录问题

[英]Login Issue to Azure AD B2C

I have list of users in Azure Active Directory with different sources as shown in image我在 Azure Active Directory 中拥有不同来源的用户列表,如图所示在此处输入图像描述

I cannot be able to login to with users with External Azure Active Directory as a source.我无法使用External Azure Active Directory作为源的用户登录。 I am using angular-oauth2-oidc module to authorize a user.我正在使用angular-oauth2-oidc模块来授权用户。 This is the error i get whenever i login with user with source External Azure Active Directory这是我使用源External Azure Active Directory的用户登录时遇到的错误在此处输入图像描述

Users with External Azure Active Directory are guest users invited into the Azure AD B2C.具有External Azure Active Directory的用户是受邀加入 Azure AD B2C 的访客用户。

They are not the local account of the Azure AD B2C.他们不是 Azure AD B2C 的本地帐户 So you can't log in with these users.所以你不能用这些用户登录。

You can verify the identities property through Microsoft Graph API: GET https://graph.microsoft.com/beta/users/{Object ID} .您可以通过 Microsoft Graph API 验证identities属性: GET https://graph.microsoft.com/beta/users/{Object ID} You will find there are no emailAddress or userName in it.您会发现其中没有emailAddressuserName

If you want to log in with them, you should configure sign-in for a specific Azure Active Directory.如果你想用他们登录,你应该为特定的 Azure Active Directory 配置登录。

You can refer to Set up sign-in for a specific Azure Active Directory under User Flow and Set up sign-in with an Azure Active Directory account using custom policies .您可以参考用户流程下的为特定 Azure Active Directory 设置登录和使用自定义策略使用 Azure Active Directory 帐户设置登录

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM