@radzor/rbac
Role-Based Access Control with hierarchical roles, fine-grained permissions, and wildcard matching. Supports role inheritance and permission auditing for server-side authorization.
Authenticationv0.1.0typescriptpythonServerrbacauthorizationpermissionsrolesaccess-controlsecurityby Radzor
Install
View source on GitHub →$npx radzor@latest add rbac
⚠ Constraints: Roles and user assignments are in-memory; persist externally for production. Wildcard permissions (e.g. 'posts:*') match all sub-permissions. Circular role inheritance is detected and prevented.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| roles | RoleDefinition[] | — | Initial role definitions with permissions and inheritance. |
| separator | string | : | Separator character for hierarchical permission strings (e.g. 'posts:write'). |
rolesRoleDefinition[]
Initial role definitions with permissions and inheritance.
separatorstring
Separator character for hierarchical permission strings (e.g. 'posts:write').
default: :
Outputs
| Name | Type | Description |
|---|---|---|
| authorizationResult |