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

@@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using StellaOps.ReleaseOrchestrator.PolicyGate.Models;
using StellaOps.ReleaseOrchestrator.PolicyGate.Services;
using StellaOps.Auth.ServerIntegration.Tenancy;
namespace StellaOps.ReleaseOrchestrator.PolicyGate.Endpoints;
@@ -22,7 +23,8 @@ public static class PolicyGateEndpoints
public static RouteGroupBuilder MapPolicyGateEndpoints(this IEndpointRouteBuilder app)
{
var group = app.MapGroup("/api/v1/policy-gates")
.WithTags("Policy Gates");
.WithTags("Policy Gates")
.RequireTenant();
// Profile endpoints
group.MapGet("profiles", ListProfiles)