对.NET Core 1.0应用程序中的Active Directory进行身份验证?

问题描述:

对于最新的.NET Core 1.0版本,我们正在将RC1应用程序迁移到最终版本。我们似乎无法弄清的唯一问题是如何集成Active Directory身份验证。

With the recent release of .NET Core 1.0, we're in the process of migrating our RC1 applications to the final release. The only piece we can't seem to figure out is how to integrate Active Directory authentication.

以前,在RC1应用程序中,我们曾使用System.DirectoryServices.AccountManagement库来处理LDAP授权查询。但是,我们不能再将此库与.NET Core v1混合使用。

Previously in the RC1 applications, we had used the System.DirectoryServices.AccountManagement library to handle the LDAP authorization queries. However, we can no longer mix this library with .NET Core v1.

通常,使用可用于以下目的的库将Active Directory身份验证集成到我们的应用程序中的最佳方法是什么?在.NET Core框架中使用? IdentityServer,其他一些第三方服务,例如Auth0还是其他?

Generally, what is the best way to integrate Active Directory authentication into our applications using the libraries available for use in the .NET Core framework? IdentityServer, some other third party service like Auth0 or something else?

Novell.LDAP库已经移植到.NET Core,您可以在 NuGet 。有许多样本,其中包括验证密码样本。

The Novell.LDAP library has been ported to .NET Core you can find it in NuGet. There are numerous samples available, including a verify password sample.