last ...
This commit is contained in:
@@ -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; } = [];
|
||||
}
|
||||
}
|
||||
@@ -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; } = [];
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xIdentityService.Models
|
||||
{
|
||||
public class XRequiredClaimDto
|
||||
|
||||
Reference in New Issue
Block a user