last ...
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xIdentityService.Interfaces
|
||||
{
|
||||
public interface IXRoleHierarchyResolver
|
||||
{
|
||||
/// <summary>
|
||||
/// Retrieve All Enabled Role Names which Weight >= minWeight ...
|
||||
/// </summary>
|
||||
/// <param name="minWeight"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<IEnumerable<string>> GetRolesByMinWeightAsync(
|
||||
int minWeight,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve Effective Roles for a Policy
|
||||
/// (explicit RequiredRoles ∪ roles by MinRoleWeight ∪ parents chain) ...
|
||||
/// </summary>
|
||||
/// <param name="explicitRoles"></param>
|
||||
/// <param name="minRoleWeight"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<IEnumerable<string>> ResolveEffectiveRolesAsync(
|
||||
IEnumerable<string> explicitRoles,
|
||||
int? minRoleWeight,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user