controller-roles
CommunityEnforce API RBAC with role-based access control.
Authorgriffnb
Version1.0.0
Installs0
System Documentation
What problem does it solve?
API endpoints often lack consistent and secure access control, leading to privilege leaks and duplicated authorization logic across routes.
Core Features & Use Cases
- Role-based routing for handlers: map roles to specific request handlers with automatic fallbacks to lower-privilege permissions.
- Session-aware authorization: automatically extracts and uses the user session to enforce access rules.
- Reusable patterns for admin and authenticated endpoints: provides templates for admin, read-admin, and public endpoints with predictable behavior.
Quick Start
Configure your API endpoints to use RoleHandler with a map of roles to handlers to enforce proper access control.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: controller-roles Download link: https://github.com/griffnb/claude-plugins/archive/main.zip#controller-roles Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.