How would an HttpModule for Custom Authentication interact with Windows Authentication?

老子叫甜甜 提交于 2019-12-05 06:27:49
BlackICE

You want the AuthenticateRequest event.

AuthenticateRequest event

Have you tried to implement the method in the global.aspx? OnSessionStart? Besides I would use hasRole or some other group-Property instead of contains and username.

Why write an http module for this. If this is asp.net web forms then why not simply use built in stuff like LoginView http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.loginview.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!