Last post Oct 31, 2015 04:21 PM by bruce (sqlwork.com)
Oct 31, 2015 10:35 AM|mz1378|LINK
I need to add an authentication code to Application_AuthenticateRequest It was previously in global.asax, I read, it is now in startup.cs but how is its signature.
Oct 31, 2015 10:46 AM|BrockAllen|LINK
Build middleware after the authentication middleware, but before your application layer.
Oct 31, 2015 04:21 PM|bruce (sqlwork.com)|LINK
asp.net 5 uses a different pipeline from previous versions (even when hosted in IIS), so there are no global.asax method/events. as suggested, you use middleware to access the pipeline.
note: when hosted by IIS, IIS works as a reverse proxy and forwards requests to the process (dnx) hosting the asp.net 5 code over port 80.