Skip to main content
Version: Next

PermissionEvaluator

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

A client interacting with the permission backend can implement this evaluator interface.

Signature:

export interface PermissionEvaluator 

Methods

Method

Description

authorize(requests, options)

Evaluates Permissions and returns a definitive decision.

authorizeConditional(requests, options)

Evaluates ResourcePermissions and returns both definitive and conditional decisions, depending on the configured PermissionPolicy. This method is useful when the caller needs more control over the processing of conditional decisions. For example, a plugin backend may want to use conditions in a database query instead of evaluating each resource in memory.