stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -494,7 +494,11 @@ builder.Services.AddSingleton<IAdvisoryLinksetQueryService>(sp =>
|
||||
return new NullAdvisoryLinksetQueryService();
|
||||
});
|
||||
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("scanner");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("scanner");
|
||||
|
||||
// Fail fast if surface configuration is invalid at startup.
|
||||
using (var validationScope = app.Services.CreateScope())
|
||||
@@ -565,6 +569,7 @@ app.UseExceptionHandler(errorApp =>
|
||||
|
||||
// Always add authentication and authorization middleware
|
||||
// Even in anonymous mode, endpoints use RequireAuthorization() which needs the middleware
|
||||
app.UseStellaOpsCors();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user