Type Alias: AuthorizationDecision
AuthorizationDecision = {
authorized:true;policy:ClassType<AuthorizationPolicy>; } | {authorized:false;policy:ClassType<AuthorizationPolicy>;reason:string; }
Result returned by a policy. A denial must include a human-readable reason; successful decisions need only identify the policy and the allow result.
Union Members
Type Literal
{ authorized: true; policy: ClassType<AuthorizationPolicy>; }
The policy permits the current execution.
Type Literal
{ authorized: false; policy: ClassType<AuthorizationPolicy>; reason: string; }
The policy denies the current execution and explains why.