PermissionClient.authorizeConditional()
Home > @backstage/plugin-permission-common
> PermissionClient
> authorizeConditional
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.
Signature:
authorizeConditional(queries: QueryPermissionRequest[], options?: PermissionClientRequestOptions): Promise<QueryPermissionResponse[]>;
Parameters
Parameter |
Type |
Description |
---|---|---|
queries | ||
options |
(Optional) |
Promise<QueryPermissionResponse[]>