Skip to main content

ConditionalPolicyDecision

Home > @backstage/plugin-permission-common > ConditionalPolicyDecision

A conditional decision returned by the PermissionPolicy.

Signature:

export type ConditionalPolicyDecision = {
result: AuthorizeResult.CONDITIONAL;
pluginId: string;
resourceType: string;
conditions: PermissionCriteria<PermissionCondition>;
};

References: AuthorizeResult.CONDITIONAL, PermissionCriteria, PermissionCondition

Remarks

This indicates that the policy allows authorization for the request, given that the returned conditions hold when evaluated. The conditions will be evaluated by the corresponding plugin which knows about the referenced permission rules.