Best way of changing authentication mechanism with ASP.NET MVC
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
, custo开发者_如何转开发m Authorization filters, etc.
How would you deal with it?
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)
{
}
精彩评论