I was surprised at MvcApplication. There is only one entry in the module collection called "__ASP_IntegratedDynamicModule_Shim". There were about 13 modules in my webforms application, one of which was “FormsAuthentication”.
In my webforms application, I override HttpApplication.Init, then use the ["FormsAuthentication"] modules to capture the FormsAuthenticationModule module and hook into its Authenticate event to replace my own handler. I am not sure how to do this now when I move to MVC 3.
The auth forms module explicitly works in my pipeline because the authentication mode = "forms" works fine (I can enter and exit using standard FormsAuthentication methods). I am using IIS 7 with the integrated ASP.NET 4.0 pipeline.
Has anyone else noticed this? I’m probably just doing something really dumb ...
source share