public static void Initialize(IApplicationBuilder app, IdentityServerDbContext context) { context.Database.EnsureCreated(); InitializeTokenServerConfigurationDatabase(app); context.SaveChanges(); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IdentityServerDbContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } DatabaseInitializer.Initialize(app, context); app.UseIdentityServer(); }