31

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
  • 1,559
  • 6
  • 20
  • 26
  • Yes, it's possible to marry Active Directory with Identity. Check out this answer for a complete example: https://stackoverflow.com/a/74734478/8644294 – Ash K Dec 08 '22 at 18:01

1 Answers1

15
KyleMit
  • 30,350
  • 66
  • 462
  • 664
Oualid KTATA
  • 1,116
  • 10
  • 20
  • 2
    What about not using ADFS? – barbarian Aug 21 '14 at 13:53
  • Look at my update and the example provided in the link. – Oualid KTATA Aug 21 '14 at 14:13
  • 2
    I use ActiveDirectoryMembershipProvider it based on old asp.net membershipment. I want to switch to ASP.NET Identity – barbarian Aug 21 '14 at 14:32
  • http://www.asp.net/visual-studio/overview/2013/creating-web-projects-in-visual-studio#orgauth – Oualid KTATA Aug 21 '14 at 15:33
  • Here I see only ADFS and Azure Active Directory – barbarian Aug 22 '14 at 12:33
  • 2
    Not to toot my own horn, but I wrote a blog post on this: https://willwebforfood.wordpress.com/2015/04/01/owin-and-active-directory/ – Michael Dunlap Apr 03 '15 at 19:39
  • 1
    However 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: http://www.asp.net/identity/overview/extensibility/overview-of-custom-storage-providers-for-aspnet-identity#rolestore – Niklas Peter Aug 07 '15 at 07:53