开发者

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)
{
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜