Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a port of the Mixed Authentication Disposition ASP.NET Module (MADAM) for ASP.NET MVC?

The Mixed Authentication Disposition ASP.NET Module (MADAM) is exactly what I need for the project I'm building in MVC2. I'm not an expert on authentication, could MADAM be quickly retrofitted to work with the MVC pipeline?

http://msdn.microsoft.com/en-us/library/aa479391.aspx

Illustrates how the Forms authentication workflow is suspended by FormsAuthenticationDispositionModule, and how BasicAuthenticationModule adds the necessary headers to the outgoing response after FormsAuthenticationDispositionModule has done its job.

like image 245
SavoryBytes Avatar asked Mar 30 '11 15:03

SavoryBytes


People also ask

Which instance holds the user identity in asp net page?

This instance is of type IPrincipal . IPrincipal is a special interface used to represent different identity types inside ASP.NET. It holds an IIdentity that represents the user identity plus its roles as an array of strings.

What is identity model in MVC?

Identity in MVC 5 Identity is a secured way of authentication methods in web applications. It is used for identifying the authorized user. Background. There are different ways of creating an Identity in applications, but this article explains how to create it using OWIN in ASP.NET MVC.

When creating a new authentication filter what base classes interfaces should be derived from?

To create a custom authentication filter in ASP.NET MVC, we need to create a class by implementing the IAuthenticationFilter Interface. This IAuthenticationFilter interface has 2 methods.


1 Answers

Depending on your Server Version of IIS, you will need to place the MADAM modules into different locations within your web.config file.

IIS 6

<system.web>
 <httpHandelers>
<-- Madam Modules go here -->
 </httpHandelers>
</system.web>

IIS 7

<system.webServer>
 <httpHandelers>
<-- Madam Modules go here -->
 </httpHandelers>
</system.webServer>
like image 57
Ed Lamberton Avatar answered Sep 27 '22 23:09

Ed Lamberton