feat: add tenant resolve and health endpoints

This commit is contained in:
xiong
2026-07-26 13:28:51 +08:00
parent 00413d6b3b
commit b10e1495c5
6 changed files with 426 additions and 3 deletions

View File

@@ -8,9 +8,9 @@ internal static class TenantRoleAuthorization
{
private static readonly HashSet<string> AdminRoles = new(StringComparer.Ordinal)
{
TenantRole.PlatformAdmin.ToString(),
TenantRole.TenantOwner.ToString(),
TenantRole.TenantAdmin.ToString()
nameof(TenantRole.PlatformAdmin),
nameof(TenantRole.TenantOwner),
nameof(TenantRole.TenantAdmin)
};
public static bool IsTenantMember(ClaimsPrincipal principal)