コード例 #1
0
 public void Configuration(IAppBuilder app)
 {
     if (GlobalAuthFilterConfig.AuthEnabled())
     {
         AuthConfig.ConfigureAuth(app);
     }
 }
コード例 #2
0
        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;
        }