使用 Azure AD 作为 Azure B2C 的身份验证提供程序

Using Azure AD as a authentication provider for Azure B2C

我有一个 angular-cli (v8) Web 应用程序,我希望用户能够使用他们现有的 Azure AD 帐户登录。

我看到了一篇解释如何使用 Azure B2C 向 angular 8 应用程序添加身份验证的文章,并开始按照该文章中概述的步骤进行操作。 https://about-azure.com/using-azure-ad-b2c-with-angular-8/

Azure AD 不在身份验证提供程序列表中

是否可以将 Azure AD 添加为身份验证提供程序?

从技术上讲,我的应用程序是一个使用 .net core 3.1 的 Service Fabric 应用程序。我知道 Visual Studio 提供并且 "Add Connect Services" 可以选择 Azure AD。

那行不通,因为它为 MVC 应用程序配置身份验证(选项 use.MVC),而我没有 MVC 应用程序,所以它行不通(我试过)

Is is possible to add Azure AD as an authentication provider?

是的,您需要select新的 OpenID Connect 提供程序并将 Azure AD 配置为身份提供程序。

参考:

Set up sign-in for a specific Azure Active Directory organization in Azure Active Directory B2C