AuthorizePermissionRequest
Home > @backstage/plugin-permission-common
> AuthorizePermissionRequest
Request object for PermissionEvaluator.authorize(). If a ResourcePermission is provided, it must include a corresponding resourceRef
.
Signature:
export type AuthorizePermissionRequest = {
permission: Exclude<Permission, ResourcePermission>;
resourceRef?: never;
} | {
permission: ResourcePermission;
resourceRef: string;
};
References: Permission, ResourcePermission