question

23331020 avatar image
0 Votes"
23331020 asked Bruce-SqlWork answered

what is the best approach to use active directory authentication in .net core on windows server?

Hello, i want to make asp.net core project with Active directory (Not Azure) authentication and authorization on windows server, what is the best method to do that because i find some recommended windows authentication but if i use it can i design the login page and how to use authorization , other suggest Novell.Directory.Ldap or WS-Federation (Active Directory Federation Services (ADFS))

windows-active-directorydotnet-aspnet-core-generaldotnet-aspnet-core-mvc
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Bruce-SqlWork avatar image
1 Vote"
Bruce-SqlWork answered

its depends on the version of core and o/s. core 3.1 has support for on-prem ad directory services only on windows, but you can use it to authenticate. .net 6 will have have support for other o/s's.

https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices?view=net-5.0

there is no builtin support, but google for examples of using asp.net cookie authentication, and the use the directory services as the authentication service.

https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie?view=aspnetcore-5.0

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.