Expand description
Public access-control utilities matching Better Auth’s resource and action rules.
These operators apply to application-side authorization. Organization HTTP permission requests continue to accept action arrays and use AND semantics.
Structs§
- Access
Control - Declared access-control statements and a constructor for roles. As in the Source runtime, constructing a role does not validate its grants against these declarations. Rust callers supply typed string action lists.
- Role
- A role’s grants; authorization never combines different roles’ statements.
Enums§
- Action
Request - An action array uses AND; a resource rule can select its own connector.
- Authorize
Response - A successful authorization has no error; a rejection explains the first failure.
- Connector
- How to combine resources, or the actions within one resource.
Functions§
- create_
access_ control - role
- Construct a role directly from literal grants.
Type Aliases§
- Authorize
Request - Resource requests. Numeric index names are visited first, in ascending order; other names retain insertion order, matching Source object entries.
- Statements
- Literal resource names mapped to literal allowed actions.