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); }
public OauthAuthorize() { _configuration = WebApiApplication.config; }