What it's for: a policy, not checks spread over the routes, decides who may do what, with the engine in the process (Casbin, Cedar) or as a service apart.
A policy decides who may do what, checked by FastAPIAuthz
for each route or each action, and by AuthzMiddleware for every request, whatever engine holds
the policy:
In process, with the policy in the app's memory:
Casbin: a newsroom whose roles write, edit, publish and grant roles.
Cedar: a team's documents, read and edited as their attributes allow, where
contractors never see a confidential one.