📄️ RBAC in Go with Gin
Step-by-step Go RBAC tutorial - add role-based access control to a Gin REST API with Casbin, including the model, policy, middleware, and runtime role management.
📄️ RBAC in Node.js with Express
Step-by-step Node.js RBAC tutorial - add role-based access control to an Express REST API with Casbin, including the model, policy, middleware, and runtime role management.
📄️ RBAC in Python with FastAPI
Step-by-step Python RBAC tutorial - add role-based access control to a FastAPI REST API with PyCasbin, including the model, policy, dependency, and runtime role management.
📄️ RBAC in Java with Spring Boot
Step-by-step Java RBAC tutorial - add role-based access control to a Spring Boot REST API with jCasbin, including the model, policy, interceptor, and runtime role management.
📄️ RBAC in NestJS
NestJS RBAC tutorial: role-based access control with role inheritance for a NestJS API, using node-casbin, a global guard and a permission decorator.
📄️ RBAC in Rust with Axum
Rust RBAC tutorial: role-based access control for an Axum REST API with casbin-rs, including the model, policy, middleware and runtime role changes.
📄️ gRPC Authorization in Go
Role-based access control for a Go gRPC service with Casbin: unary and stream interceptors that check the caller's role against the full method name.
📄️ ABAC in Go
Go ABAC tutorial: attribute-based access control for a net/http API with Casbin, using owner, department and status to decide who can read, edit and publish.
📄️ ABAC in Node.js with Express
Node.js ABAC tutorial: attribute-based access control for an Express API with node-casbin, using owner, department and status to decide who can edit.
📄️ ABAC in Python with Flask
Python ABAC tutorial: attribute-based access control for a Flask API with PyCasbin, using owner, department and status to decide who can read and edit.
📄️ Authorization for AI Agents and MCP Tools
Control which tools an AI agent may call with Casbin: per-agent permissions, argument limits, deny rules, and no more access than its user. With an MCP example.