Best way of changing authentication mechanism with ASP.NET MVC

341 views Asked by At

I need to read, generate and keep updated an authentication cookie that is different from formsauthentication one.

I saw many options like using IHttpHandlers, IHttpModules, custom Authorization filters, etc.

How would you deal with it?

1

There are 1 answers

1
ajma On

If you need to mess with the authentication cookie, in your Global.asax, use the Application_AuthenticateRequest event

protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}