Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove UseBlazorFrameworkFiles as no longer needed #3741

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Oqtane.Server/Startup.cs
Original file line number Diff line number Diff line change
@@ -68,16 +68,16 @@ public void ConfigureServices(IServiceCollection services)
services.AddOptions<List<Database>>().Bind(Configuration.GetSection(SettingKeys.AvailableDatabasesSection));
services.Configure<HostOptions>(opts => opts.ShutdownTimeout = TimeSpan.FromSeconds(10)); // increase from default of 5 seconds

// setup HttpClient for server side in a client side compatible fashion ( with auth cookie )
services.AddHttpClients();

// register scoped core services
services.AddScoped<IAuthorizationHandler, PermissionHandler>()
.AddOqtaneScopedServices()
.AddOqtaneServerScopedServices();

services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();

// setup HttpClient for server side in a client side compatible fashion ( with auth cookie )
services.AddHttpClients();

// register singleton scoped core services
services.AddSingleton(Configuration)
.AddOqtaneSingletonServices();
@@ -199,7 +199,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ISyncMan
app.UseStaticFiles();
app.UseTenantResolution();
app.UseJwtAuthorization();
app.UseBlazorFrameworkFiles();
app.UseRouting();
app.UseCors();
app.UseAuthentication();