- Decisions: Oso evaluates your policies against authorization facts to determine outcomes (allow or deny)
- Enforcement: Your application acts on the decision (return errors, filter data, etc.)
Decision APIs
Oso provides three API patterns:- Explicit Authorization: Check if a user has permission on a resource
- List Resources: Get resources a user has permission on
- List Permissions: Get permissions a user has on a resource
Local vs. centralized
Choose the correct API variant based on your authorization data strategy.- Local Authorization (*_local): Use when facts live in your own database.
- Centralized Authorization: Use when facts live entirely in Oso Cloud.
- If you use Local Authorization at all, always use local APIs. Centralized facts in Oso Cloud still apply to local queries.