How to get OwinContext from Global.asax?
I am trying to set up my Dependency Injection and I am in the need of injecting a IAuthenticationManager from ASP.NET Identity to an OwinContext . For this I am from my Global.asax -> ServiceConfig.Configure() running: container.Register(() => HttpContext.Current.GetOwinContext().Authentication); But when I am running my application I get this message: No owin.Environment item was found in the context Why is this HttpContext.Current.GetOwinContext() not available from Global.asax? Startup.cs [assembly: OwinStartupAttribute(typeof(MyApp.Web.Startup))] namespace Speedop.Web { public partial