frontend styling fixes
This commit is contained in:
@@ -29,9 +29,9 @@ public static class EvidenceEndpoints
|
||||
app.MapGet("/evidence/vex/locker/{bundleId}", async (
|
||||
HttpContext context,
|
||||
string bundleId,
|
||||
IOptions<AirgapOptions> airgapOptions,
|
||||
IOptions<VexStorageOptions> storageOptions,
|
||||
IAirgapImportStore importStore,
|
||||
[FromServices] IOptions<AirgapOptions> airgapOptions,
|
||||
[FromServices] IOptions<VexStorageOptions> storageOptions,
|
||||
[FromServices] IAirgapImportStore importStore,
|
||||
CancellationToken cancellationToken) =>
|
||||
{
|
||||
var scopeResult = ScopeAuthorization.RequireScope(context, "vex.read");
|
||||
@@ -104,9 +104,9 @@ public static class EvidenceEndpoints
|
||||
app.MapGet("/evidence/vex/locker/{bundleId}/manifest/file", async (
|
||||
HttpContext context,
|
||||
string bundleId,
|
||||
IOptions<AirgapOptions> airgapOptions,
|
||||
IOptions<VexStorageOptions> storageOptions,
|
||||
IAirgapImportStore importStore,
|
||||
[FromServices] IOptions<AirgapOptions> airgapOptions,
|
||||
[FromServices] IOptions<VexStorageOptions> storageOptions,
|
||||
[FromServices] IAirgapImportStore importStore,
|
||||
CancellationToken cancellationToken) =>
|
||||
{
|
||||
var scopeResult = ScopeAuthorization.RequireScope(context, "vex.read");
|
||||
|
||||
@@ -38,9 +38,9 @@ internal static class MirrorRegistrationEndpoints
|
||||
|
||||
private static async Task<IResult> HandleListBundlesAsync(
|
||||
HttpContext httpContext,
|
||||
IAirgapImportStore importStore,
|
||||
TimeProvider timeProvider,
|
||||
ILogger<MirrorRegistrationEndpointsMarker> logger,
|
||||
[FromServices] IAirgapImportStore importStore,
|
||||
[FromServices] TimeProvider timeProvider,
|
||||
[FromServices] ILogger<MirrorRegistrationEndpointsMarker> logger,
|
||||
[FromQuery] string? publisher = null,
|
||||
[FromQuery] string? importedAfter = null,
|
||||
[FromQuery] int limit = 50,
|
||||
@@ -102,9 +102,9 @@ internal static class MirrorRegistrationEndpoints
|
||||
private static async Task<IResult> HandleGetBundleAsync(
|
||||
string bundleId,
|
||||
HttpContext httpContext,
|
||||
IAirgapImportStore importStore,
|
||||
TimeProvider timeProvider,
|
||||
ILogger<MirrorRegistrationEndpointsMarker> logger,
|
||||
[FromServices] IAirgapImportStore importStore,
|
||||
[FromServices] TimeProvider timeProvider,
|
||||
[FromServices] ILogger<MirrorRegistrationEndpointsMarker> logger,
|
||||
[FromQuery] string? generation = null,
|
||||
CancellationToken cancellationToken = default)
|
||||
{
|
||||
@@ -177,9 +177,9 @@ internal static class MirrorRegistrationEndpoints
|
||||
private static async Task<IResult> HandleGetBundleTimelineAsync(
|
||||
string bundleId,
|
||||
HttpContext httpContext,
|
||||
IAirgapImportStore importStore,
|
||||
TimeProvider timeProvider,
|
||||
ILogger<MirrorRegistrationEndpointsMarker> logger,
|
||||
[FromServices] IAirgapImportStore importStore,
|
||||
[FromServices] TimeProvider timeProvider,
|
||||
[FromServices] ILogger<MirrorRegistrationEndpointsMarker> logger,
|
||||
[FromQuery] string? generation = null,
|
||||
CancellationToken cancellationToken = default)
|
||||
{
|
||||
|
||||
@@ -186,8 +186,9 @@ services.AddEndpointsApiExplorer();
|
||||
services.AddHealthChecks();
|
||||
services.AddSingleton(TimeProvider.System);
|
||||
services.AddMemoryCache();
|
||||
services.AddAuthentication();
|
||||
services.AddAuthorization();
|
||||
// Auth is handled by the gateway; bare AddAuthentication()/AddAuthorization()
|
||||
// without registered schemes causes AuthorizationPolicyCache SIGSEGV on startup.
|
||||
// Resource-server auth will be added when Excititor gets [Authorize] endpoints.
|
||||
|
||||
builder.ConfigureExcititorTelemetry();
|
||||
|
||||
@@ -205,8 +206,7 @@ var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("excititor");
|
||||
|
||||
app.UseStellaOpsCors();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
// Auth middleware removed -- see service registration comment above.
|
||||
app.TryUseStellaRouter(routerOptions);
|
||||
app.UseObservabilityHeaders();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user