英文:
Sign in Azure AD users through Azure B2C
问题
-
我正在构建自定义的B2C策略,以通过Azure B2C设置Azure AD用户的登录。我正在按照以下链接进行操作 - https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-azure-ad-single-tenant?pivots=b2c-custom-policy
-
我对以下问题不太清楚:
- 当Azure AD作为身份提供者时,应该使用哪个入门包?我正在使用"socialandlocalaccounts"包 - 这样做正确吗?
- 在按照Microsoft链接中的说明进行操作后,我看到Azure AD登录界面。我输入AD凭据,登录成功,我可以看到Azure B2C租户->用户中创建了一个用户条目。所以Azure AD中的用户信息现在作为本地用户在B2C中创建了。这是否是预期行为?我找不到任何描述这种行为的文档。
任何建议?谢谢。
英文:
I am building custom B2C policy to set up sign in of Azure AD users through Azure B2C. This is the link that I am following - https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-azure-ad-single-tenant?pivots=b2c-custom-policy
I am unclear on these
- Which starter pack should be used when Azure AD is identity provider? I am using socialandlocalaccounts pack - is that correct?
- after I follow instructions in MS link above, I get a Azure AD screen to log in. I enter AD credentials, log in is successful, I can see that a user entry is created in Azure B2C Tenant->Users. So user info from Azure AD is now being created as a local user in B2C. Is this expected? I cannot find any documentation that describes this behavior.
Any suggestions? Thanks
答案1
得分: 1
在自定义策略中,"social" = "federation",这就是你在Azure AD中所做的事情。
是的,联合用户在Azure AD中被创建为"影子账户"。他们不是本地用户。这些用户不能直接登录到B2C。
您将在用户界面中看到他们是一种"不同"类型的用户。
如果您查看用户属性:
"identities": [
{
"signInType": "userName",
"issuer": "contoso.onmicrosoft.com",
"issuerAssignedId": "johnsmith"
},
{
"signInType": "emailAddress",
"issuer": "contoso.onmicrosoft.com",
"issuerAssignedId": "jsmith@yahoo.com"
},
{
"signInType": "federated",
"issuer": "facebook.com",
"issuerAssignedId": "5eecb0cd"
}
]
英文:
In custom policies, social = federation which is what you are doing with Azure AD.
Yes, federated users are created in Azure AD as "shadow accounts". They are not local users. These users cannot log in to B2C directly.
You will see in the User blade that they are a "different" type of user.
If you look at the user attributes:
"identities": [
{
"signInType": "userName",
"issuer": "contoso.onmicrosoft.com",
"issuerAssignedId": "johnsmith"
},
{
"signInType": "emailAddress",
"issuer": "contoso.onmicrosoft.com",
"issuerAssignedId": "jsmith@yahoo.com"
},
{
"signInType": "federated",
"issuer": "facebook.com",
"issuerAssignedId": "5eecb0cd"
}
]
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论