Tutorials
This page lists papers, videos, and community tutorials for Casbin. Some cover the model and apply to all languages; others are written for a specific language or framework.
Papers
The paper describes Casbin’s design in depth. To cite it in academic work, use:
@article{luo2025perm,
title={PERM: Streamlining Cloud Authorization With Flexible and Scalable Policy Enforcement},
author={Luo, Yang and Shen, Qingni and Wu, Zhonghai},
journal={IEEE Transactions on Information Forensics and Security},
year={2025},
volume={20},
number={7},
pages={8481-8496},
publisher={IEEE}
}
Videos
- A Secure Vault - implementing authorization middleware with Casbin - JuniorDevSG
- Nest.js - Casbin RESTful RBAC authorization middleware
PERM Meta-Model (Policy, Effect, Request, Matchers)
- Understanding Casbin with different Access Control Model Configurations
- Modeling Authorization with PERM in Casbin
- Designing a Flexible Permissions System with Casbin
- Authorize with Access Control Lists
HTTP & RESTful
Gin
- Authorization in Golang Projects using Casbin
- Tutorial: Integrate Gin with Casbin
- Policy enforcements on K8s with Pipeline
- Authentication and authorization in Gin application with JWT and Casbin
Echo
Argo CD
Express
Koa
Nest
- How to Create Role-based Authorization Middleware with Casbin and Nest.js
- nest.js: Casbin RESTful RBAC authorization middleware (Video)
- A Demo App of Attribute-based Access Control in Node.js Based on Casbin
- Multi tenant SaaS starter kit with cqrs graphql microservice architecture
Comments are powered by giscus and GitHub Discussions. They load from giscus.app and GitHub only after you click the button below.