static Startup() { PublicClientId = "self"; IdentityManagerFactory = new IdentityManagerFactory(IdentityConfig.Settings, () => new IdentityStore()); CookieOptions = new CookieAuthenticationOptions(); OAuthOptions = new OAuthAuthorizationServerOptions { TokenEndpointPath = "/Token", AuthorizeEndpointPath = "/api/Account/ExternalLogin", Provider = new ApplicationOAuthProvider(PublicClientId, IdentityManagerFactory, CookieOptions) }; }
static Startup() { PublicClientId = "self"; IdentityManagerFactory = new IdentityManagerFactory(IdentityConfig.Settings, () => new IdentityStore()); CookieOptions = new CookieAuthenticationOptions(); OAuthOptions = new OAuthAuthorizationServerOptions { TokenEndpointPath = "/Token", AuthorizeEndpointPath = "/api/Account/ExternalLogin", Provider = new ApplicationOAuthProvider(PublicClientId, IdentityManagerFactory, CookieOptions) }; }