Microsoft.AspNetCore.Authentication.ActiveDirectory | NET 5 for Windows Integrated Authentication | Identity Management library
kandi X-RAY | Microsoft.AspNetCore.Authentication.ActiveDirectory Summary
kandi X-RAY | Microsoft.AspNetCore.Authentication.ActiveDirectory Summary
This ASP.NET Core middleware lets you authenticate to Active Directory. The old school ASP.NET Membership capabilities and Forms Authentication had a nice LDAP provider, and IIS has native Windows Integrated Authentication capability, supporting both NTLM and Kerberos authentication. ASP.NET Core doesn't have NTLM/Kerberos authentication middleware and ASP.NET Identity 3 doesn't have an LDAP provider. Usually, IIS handles this (and it still can), but what if you are hosting on Kestrel? This library allows you to do Windows Integrated Authentication with ASP.NET Core.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Microsoft.AspNetCore.Authentication.ActiveDirectory
Microsoft.AspNetCore.Authentication.ActiveDirectory Key Features
Microsoft.AspNetCore.Authentication.ActiveDirectory Examples and Code Snippets
Community Discussions
Trending Discussions on Microsoft.AspNetCore.Authentication.ActiveDirectory
QUESTION
I am working on ASP.NET Core 1.1 - MVC application. I need to authenticate windows users using Login screen(mvc view). I need to use Active Directory to authenticate users.
I found wonderful article, http://tech.trailmax.info/2016/03/using-owin-and-active-directory-to-authenticate-users-in-asp-net-mvc-5-application/ I downloaded the sample app and sample itself works great. But I as I need to implement this with .net core 1.1, it does not support System.DirectoryServices.AccountManagement and Microsoft.Owin.Security.Cookies, Microsoft.Owin.Host.SystemWeb nuget packages. so it does not seem this solution will work for me.
I investigated more and found Novell.Directory.Ldap.NETStandard (ASP.NET Core and on premise AD authentication) which works for active directory users validation (.net core 1.1)
I also found Microsoft.AspNetCore.Authentication.ActiveDirectory (middleware.github.com/OneBitSoftware/Microsoft.AspNetCore.Authentication.ActiveDirectory)
One more, AspNetCoreActiveDirectoryStarterKit (github.com/WinLwinOoNet/AspNetCoreActiveDirectoryStarterKit)
Is there any other way I can achieve this? Anybody has experience using above mentioned options and suggest me the good one? Please suggest.
...ANSWER
Answered 2017-Oct-19 at 01:41Thanks for your comments.It was helpful as well.
It worked for me with the help of Novell.Directory.Ldap.NETStandard Nuget. I was able to refernece LDAP stuff in my code. I referenced https://nicolas.guelpa.me/blog/2017/02/15/dotnet-core-ldap-authentication.html article with some code improvements and modifications as per my requirements.Please feel free to write your views.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Microsoft.AspNetCore.Authentication.ActiveDirectory
Review the sample in the samples folder.
Either install through the NuGet package: https://www.nuget.org/packages/Microsoft.AspNetCore.Authentication.ActiveDirectory/ OR just reference the source code directly.
Add the Microsoft.AspNetCore.Authentication.ActiveDirectory library to your project.json file
Add the following line services.AddAuthentication(options => new ActiveDirectoryCookieOptions()); in your Startup.cs ConfigureServices method
Add app.UseCookieAuthentication(new ActiveDirectoryCookieOptions().ApplicationCookie); to your Startup.cs Configure method
Add the following after the app.UseCookieAuthentication() line (Step 4):
If you don't like the default "/windowsauthentication/ntlm", you can use the CallbackPath and LoginPath settings to configure your alternative route.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page