using Microsoft.AspNetCore.Authorization; namespace ROLAC.API.Authorization; /// /// Authorization requirement carrying the module + action a request needs. /// Materialized on demand by from a policy /// name of the form PERM:<module>:<action>. /// public class PermissionRequirement : IAuthorizationRequirement { public string Module { get; } public string Action { get; } public PermissionRequirement(string module, string action) { Module = module; Action = action; } }