public void Configuration(IAppBuilder app) { if (GlobalAuthFilterConfig.AuthEnabled()) { AuthConfig.ConfigureAuth(app); } }
protected void Application_Start() { ContainerConfig.Configure(); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); // Filter for MVC GlobalAuthFilterConfig.RegisterMvcGlobalAuthFilter(GlobalFilters.Filters); AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.NameIdentifier; }