This commit is contained in:
2026-11-16 23:11:33 +03:30
parent cd9ee26c0f
commit 19fece89bd
8 changed files with 420 additions and 32 deletions
+38
View File
@@ -0,0 +1,38 @@
using System.Collections.Generic;
namespace xIdentityService.Models
{
public class XEffectiveAuthorizationDto
{
/// <summary>
/// Policy Name ...
/// </summary>
public string PolicyName { get; set; }
/// <summary>
/// Required Authenticated User ...
/// </summary>
public bool RequireAuthenticatedUser { get; set; }
/// <summary>
/// Check Policy has Enabled feature or not ...
/// (IsEnabled/IsBanned) ...
/// </summary>
public bool RequireEnabledUser { get; set; }
/// <summary>
/// Effective Roles ...
/// </summary>
public HashSet<string> EffectiveRoles { get; set; } = [];
/// <summary>
/// Effective Scopes ...
/// </summary>
public HashSet<string> EffectiveScopes { get; set; } = [];
/// <summary>
/// Effective Claims ...
/// </summary>
public List<XRequiredClaimDto> EffectiveClaims { get; set; } = [];
}
}
+3 -1
View File
@@ -1,9 +1,11 @@
using System.Collections.Generic;
namespace xIdentityService.Models
{
public class XPolicyEvaluationResultDto
{
public bool Passed { get; set; }
public string Policy { get; set; }
public List<string> FailedRequirements { get; set; } = new List<string>();
public List<string> FailedRequirements { get; set; } = [];
}
}
+2
View File
@@ -1,3 +1,5 @@
using System.Collections.Generic;
namespace xIdentityService.Models
{
public class XRequiredClaimDto