Use Oso Cloud to check whether an actor has a given permission on a resource before reading or writing data. Authorization has two parts:Documentation Index
Fetch the complete documentation index at: https://www.osohq.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
- 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.