[英]How to login with corporate account when using Microsoft Account identity provider in Azure AD B2C?
I want to build an application where users can log in with their corporate Microsoft / Azure AD account.我想构建一个应用程序,用户可以在其中使用其公司 Microsoft / Azure AD 帐户登录。
For that, I created a Azure AD B2C incl.为此,我创建了一个 Azure AD B2C,包括。 SignUpSignIn user flow with the "Microsoft Account" identity provider.
使用“Microsoft 帐户”标识提供程序的 SignUpSignIn 用户流。
Now when I want to log in I get redirected to https://login.live.com/ and can successfully log in with my personal microsoft account.现在,当我想登录时,我被重定向到https://login.live.com/并且可以使用我的个人 Microsoft 帐户成功登录。 However, if I enter the email address of my corporate account, the error message "This microsoft account is not available" comes up.
但是,如果我输入公司帐户的 email 地址,则会出现错误消息“此 Microsoft 帐户不可用”。
The signInAudience
of my app registration is set to AzureADandPersonalMicrosoftAccount
.我的应用程序注册的
signInAudience
设置为AzureADandPersonalMicrosoftAccount
。 So I would expect that also corporate accounts should work?所以我希望公司帐户也应该有效?
"Microsoft account" there refers only to personal Microsoft accounts (Outlook/Live/Hotmail accounts).这里的“微软账户”仅指个人微软账户(Outlook/Live/Hotmail账户)。
If you want to only authenticate with one Azure AD tenant, there is guidance for adding that as an identity provider: https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-azure-ad-single-tenant?pivots=b2c-user-flow .如果您只想通过一个 Azure AD 租户进行身份验证,有将其添加为身份提供者的指南: https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-azure -ad-single-tenant?pivots=b2c-user-flow 。
Multi-tenant Azure AD authentication could be done with the generic OpenID Connect provider I think: https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-generic-openid-connect?pivots=b2c-user-flow多租户 Azure AD 身份验证可以使用通用的 OpenID Connect 提供商完成我认为: https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-generic-openid-connect?枢轴=b2c-用户流
It can also be achieved through custom policies: https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-azure-ad-multi-tenant?pivots=b2c-custom-policy .也可以通过自定义策略来实现: https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-azure-ad-multi-tenant?pivots=b2c-custom-policy .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.