Authorize Actions Beyond Login and Ownership
Review service-level action policies and alternate routes using a support agent who owns the order but cannot approve its refund.
You’re reading a preview. Premium includes the full lesson and specialist practice. View the full curriculum.
Permission for an object does not grant every action
Function Level Authorization determines whether an actor may invoke a particular operation. A support agent can be authenticated, belong to the right tenant, and read a customer's order while still lacking permission to approve its refund. That is a different rule from object ownership.
In ReturnDesk, support can inspect orders and prepare refund requests. Only billing approvers can approve a refund. A processing worker may execute an already approved request under a constrained service policy. The API must preserve these distinctions regardless of which route invokes the operation.
Actor Read order Request refund Approve refund Execute approved
Support yes yes no no
Billing approver yes yes yes no
Settlement worker limited no no yes
Unauthenticated no no no no
The policy includes both actor type and action. A generic isAuthenticated check cannot express it. An endpoint path beginning with /admin is a label, not enforcement.