Authenticate against Active Directory in .NET Core 1.0 application?

前端 未结 4 1269
失恋的感觉
失恋的感觉 2020-12-25 11:45

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

相关标签:
4条回答
  • 2020-12-25 11:58

    Just want to say that they just issued a pre-release of the Microsoft.Windows.Compatibility which contains the System.DirectoryServices components needed to integrating with Active Directory

    https://www.nuget.org/packages/Microsoft.Windows.Compatibility/2.0.0-preview1-25914-04

    0 讨论(0)
  • 2020-12-25 12:02

    The System.DirectoryServices namespace is currently being implemented in .NET Core, work is ongoing. https://github.com/dotnet/corefx/issues/2089

    0 讨论(0)
  • 2020-12-25 12:04

    Best is subjective, really there's only one way right now, given the missing DirectoryServices namespace (which is planning for 1.1) - federation.

    You'd have to install ADFS, and expose it to the internet. Then you configure it to act as an OAuth2 endpoint, and use the generic OAuth middleware to redirect logins to your ADFS server. You could also install the latest ADFS beta, which needs the latest Windows Server beta, and use OpenID Connect, but that's a lot of beta risks you may not find acceptable.

    Or, if you just want the latest MVC pieces, run it on .NET Desktop, where you have full access to the directory services namespace.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题