implementing-casbin

Community

Secure your Go apps with robust authorization.

Authormeriley
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a comprehensive solution for implementing fine-grained authorization in Go applications, enabling robust role-based (RBAC) and attribute-based (ABAC) access control.

Core Features & Use Cases

  • Flexible Policy Models: Supports RBAC, ABAC, and hybrid models with domain support for multi-tenancy.
  • Database Integration: Seamlessly integrates with GORM adapters for persistent policy storage (PostgreSQL, MySQL).
  • Middleware Integration: Provides ready-to-use middleware for popular Go web frameworks like Chi and gRPC.
  • Use Case: Secure a multi-tenant SaaS application by defining distinct roles and permissions for users within each tenant, ensuring users can only access resources specific to their domain.

Quick Start

Use the implementing-casbin skill to set up RBAC authorization in a new Go project using PostgreSQL.

Dependency Matrix

Required Modules

github.com/casbin/casbin/v2github.com/casbin/gorm-adapter/v3gorm.io/driver/postgres

Components

scriptsreferencesassets

💻 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: implementing-casbin
Download link: https://github.com/meriley/claude-code-skills/archive/main.zip#implementing-casbin

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.