You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
566 B

3 years ago
using Identity.Api.Clean.Shared.ValueObjects;
namespace Identity.Api.Clean.Shared.IServices;
public interface IPermissionGrantManager
{
Task<IEnumerable<string>> GetPermissionNamesAsync(params (string providerName, Guid providerKey)[] providerKeys);
Task<List<PermissionGroupValueObject>> GetPermissionGrantsAsync(string providerName, Guid providerKey);
List<PermissionGroupValueObject> GetPermissionGroups(IEnumerable<string> permissionNames);
Task SetAsync(string permissionName, string providerName, Guid providerKey, bool isGranted);
}