public static IdentityServerServiceFactory Configure(string connString) { var efOptions = new EntityFrameworkServiceOptions { ConnectionString = connString }; var factory = new IdentityServerServiceFactory(); //Clients are configured in auth.api //Scopes are configured in auth.api factory.RegisterConfigurationServices(efOptions); factory.RegisterOperationalServices(efOptions); factory.RegisterScopeStore(efOptions); factory.RegisterClientStore(efOptions); factory.RegisterCors(true); return factory; }
public static IdentityServerServiceFactory Configure(string idsrvConnection) { var factory = new IdentityServerServiceFactory(); var efOptions = new EntityFrameworkServiceOptions { ConnectionString = idsrvConnection, }; factory.RegisterConfigurationServices(efOptions); factory.RegisterOperationalServices(efOptions); factory.RegisterScopeStore(efOptions); factory.RegisterCors(true); factory.ConfigureUserService(idsrvConnection); return factory; }