tenant fixes

This commit is contained in:
master
2026-02-23 23:44:50 +02:00
parent bdb1438654
commit 4f947a8b61
159 changed files with 1064 additions and 556 deletions

View File

@@ -5,6 +5,7 @@ using StellaOps.Timeline.Core;
using StellaOps.Timeline.Core.Export;
using StellaOps.HybridLogicalClock;
using StellaOps.Timeline.WebService.Security;
using StellaOps.Auth.ServerIntegration.Tenancy;
namespace StellaOps.Timeline.WebService.Endpoints;
@@ -20,7 +21,8 @@ public static class ExportEndpoints
{
var group = app.MapGroup("/api/v1/timeline")
.WithTags("Export")
.RequireAuthorization(TimelinePolicies.Write);
.RequireAuthorization(TimelinePolicies.Write)
.RequireTenant();
group.MapPost("/{correlationId}/export", ExportTimelineAsync)
.WithName("ExportTimeline")