Delegate AuthorizationCallback
Represents authorization rule.
Namespace: DotNext.Maintenance.CommandLine.Authorization
Assembly: DotNext.MaintenanceServices.dll
Syntax
public delegate ValueTask<bool> AuthorizationCallback(IPrincipal principal, CommandResult target, ITypeMap context, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IPrincipal | principal | Authenticated user. |
CommandResult | target | The authorization target. |
ITypeMap | context | Maintenance session context. |
CancellationToken | token | The token that can be used to cancel the operation. |
Returns
Type | Description |
---|---|
ValueTask<bool> | true if authorization passed successfully; otherwise, false. |