Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use ActiveDirectory authorization with ASP.NET Identity

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?

like image 892
barbarian Avatar asked Aug 21 '14 13:08

barbarian


People also ask

How do I use Microsoft Identity Azure AD to authenticate your users?

Enable Azure Active Directory in your App Service app. Sign in to the Azure portal and navigate to your app. Select Authentication in the menu on the left. Click Add identity provider.


1 Answers

  • 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:

like image 88
Oualid KTATA Avatar answered Sep 22 '22 18:09

Oualid KTATA