Use ActiveDirectory authorization with ASP.NET Identity
Yes it's possible using a claim based authentication. It's integrated to .Net 4.5 now (before it was called WIF).
You can use Thinktucture, which is a very robust authentication provider it has a full example on how to integrate ADFS. Here is a link for it.
Here is another way to do it for an MVC4 app - MVC 4 and ADFS integration guide included
Here's a solution for MVC5 Web app using ADFS On-Premises Organizational Auth and Visual Studio 2013 localhost development
If you don't want to use ADFS you can use the
ActiveDirectoryMembershipProvider
. It works with Windows authentication and here's an post of using it with Forms authentication - Chris Schiffhauer - Implement Active Directory Authentication in ASP.NET MVC 5:
barbarian
Updated on January 05, 2020Comments
-
barbarian over 4 years
I'm implementing corporate website with asp.net mvc and want to use new ASP.NET Identity framework. Is it possible to integrate ActiveDirectory authorization with ASP.NET Identity? Any samples how to do it?
-
barbarian over 9 yearsWhat about not using ADFS?
-
Oualid KTATA over 9 yearsLook at my update and the example provided in the link.
-
barbarian over 9 yearsI use ActiveDirectoryMembershipProvider it based on old asp.net membershipment. I want to switch to ASP.NET Identity
-
Oualid KTATA over 9 years
-
barbarian over 9 yearsHere I see only ADFS and Azure Active Directory
-
Michael Dunlap about 9 yearsNot to toot my own horn, but I wrote a blog post on this: willwebforfood.wordpress.com/2015/04/01/…
-
Niklas Peter almost 9 yearsHowever I think "ActiveDirectoryMembershipProvider" is the old way. Here is a guide how to implement a custom ASP.NET identity without EF. Probably you have to do the same for Active Directory, but it seems to be quite a lot of work for such a standard functionality, that should actually be integrated in ASP.NET: asp.net/identity/overview/extensibility/…