Skip to main content

PermissionCondition

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

A condition returned with a CONDITIONAL authorization response.

Conditions are a reference to a rule defined by a plugin, and parameters to apply the rule. For example, a rule might be isOwner from the catalog-backend, and params may be a list of entity claims from a identity token.

Signature:

export type PermissionCondition<TResourceType extends string = string, TParams extends PermissionRuleParams = PermissionRuleParams> = {
resourceType: TResourceType;
rule: string;
params?: TParams;
};

References: PermissionRuleParams