private void ConfigureIdentityWithConfigurationDB(IAppBuilder app) { app.Map("/admin", adminApp => { var factory = new IdentityManagerServiceFactory(); factory.ConfigureMolIdentityManagerService("AspId"); adminApp.UseIdentityManager(new IdentityManagerOptions() { Factory = factory }); }); app.Map("/core", core => { var idSvrFactory = Factory.Configure("IdSvr3Config", "dbo"); idSvrFactory.ConfigureUserService("AspId"); var options = new IdentityServerOptions { SiteName = "IdentityServer3 - Individual services AspNetIdentity", RequireSsl = true, SigningCertificate = Certificate.Get(), Factory = idSvrFactory, //AuthenticationOptions = new AuthenticationOptions //{ // IdentityProviders = ConfigureAdditionalIdentityProviders, //}, EventsOptions = new EventsOptions { RaiseSuccessEvents = true, RaiseErrorEvents = true, RaiseFailureEvents = true, RaiseInformationEvents = true } }; core.UseIdentityServer(options); }); }