简体   繁体   English

在 Azure AD B2C 中使用 Microsoft 帐户身份提供程序时如何使用公司帐户登录?

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

相关问题 如何在Azure AD B2C中配置Microsoft帐户身份提供程序以重定向到我的URL - How can I configure Microsoft Account identity provider in Azure AD B2C to redirect to my URL 在Azure AD B2C中使用Microsoft帐户提供程序时格式不同的issuerUserId - Differently-formatted issuerUserId when using Microsoft Account provider in Azure AD B2C 如何在Azure AD B2C中启用本地帐户身份提供程序以支持用户名和电子邮件? - How do I enable Local Account Identity provider to support both UserName and Email in Azure AD B2C? 如何将带有 Azure AD B2C 帐户的 Microsoft Authenticator App 迁移到新手机? - How to migrate Microsoft Authenticator App with Azure AD B2C account to new phone? Azure AD B2C 与 Azure AD 多租户 - 始终选择 MS 帐户登录的选项? - Azure AD B2C with Azure AD Multi-Tenant - option to always choose MS account to login with? 如何使用 MSAL C#、.net 核心在 Azure AD B2C 用户帐户上重置密码? - How to reset password on Azure AD B2C user account using MSAL C#, .net core? 使用 Azure AD B2C 通过 Microsoft 身份提供程序登录的响应无效 - Invalid response signing in via Microsoft identity provider with Azure AD B2C Azure AD B2C:注销社交帐户(使用 OIDC 的 Azure AD) - Azure AD B2C : Log out of social account (Azure AD using OIDC) 将自己的身份提供程序添加到Azure AD B2C - Add own Identity Provider to Azure AD B2C Azure AD B2C 中的身份提供商菜单未显示 - Identity Provider menu in Azure AD B2C not showing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM