Пример #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            config = new ResourceServerConfiguration
            {
                EncryptionVerificationCertificate = new X509Certificate2(Server.MapPath("~/Certs/localhost.pfx"), "a"),
                IssuerSigningCertificate = new X509Certificate2(Server.MapPath("~/Certs/localhost.cer"))
            };

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
Пример #2
0
 public OauthAuthorize()
 {
     _configuration = WebApiApplication.config;
 }