Table of Contents

Interface IAuthorize

Namespace
Trellis.Authorization
Assembly
Trellis.Authorization.dll

Marker interface for commands/queries that require static permissions. Authorization checks verify that the current actor has ALL of the RequiredPermissions before calling the handler.

public interface IAuthorize : IAuthorizationMessage
Extension Methods

Properties

RequiredPermissions

Permissions the actor must have to execute this command/query. All listed permissions are required (AND logic).

IReadOnlyList<string> RequiredPermissions { get; }

Property Value

IReadOnlyList<string>

Remarks

Duplicates and order are ignored — the check is set-like under AND-semantics. The type is IReadOnlyList<T> rather than IReadOnlySet<T> so consumers can use natural collection-expression syntax (["orders:delete"]) at the call site.