Config
Available Options
The Authorization module can be configured through the Admin Panel or via the administrative API.
Roles
Roles define a set of permissions that can be assigned to users. Each role has a unique name and a set of permissions associated with it.
Default roles:
admin- Full access to all resourcesuser- Basic access for authenticated users
Rules
Rules define the authorization logic for specific resources and actions. Each rule specifies:
- Resource - The resource type the rule applies to
- Action - The action being authorized (create, read, update, delete)
- Role - The role required to perform the action
- Conditions - Optional conditions for more granular control
Managing Roles
Through the Admin Panel, you can:
- Create new roles with custom permissions
- Edit existing role permissions
- Delete roles that are no longer needed
- Assign roles to users
caution
Be careful when deleting roles, as this will revoke access for all users assigned to that role.
Managing Rules
Authorization rules can be managed through:
- Admin Panel - Visual interface for rule management
- Administrative API - Programmatic rule management
Rule Evaluation
When an authorization request is made, the module evaluates rules in the following order:
- Check if the user has the required role
- Evaluate any conditions associated with the rule
- Return allow or deny based on the evaluation
info
If no matching rule is found, the request is denied by default.