public static IApplicationBuilder BuildIdentityServer(this IApplicationBuilder app) { InitializeDatabase.Up(app); return(app.UseAuthentication() .UseIdentityServer() .UseAuthorization()); }