教程
在阅读本教程之前,请注意有的Casbin模型教程适合不同语言执行的的Casbin,然而有的其他的教程是对于特定的语言
我们的论文
这篇论文深入介绍了Casbin的设计细节。如果您使用Casbin/PML,请引用以下BibTex作为参考文献:
@article{luo2019pml,
title={PML: An Interpreter-Based Access Control Policy Language for Web Services},
author={Luo, Yang and Shen, Qingni and Wu, Zhonghai},
journal={arXiv preprint arXiv:1903.09756},
year={2019}
}
这里是另外一种更长版本的论文,发表在《软件学报》上 不同格式的引文 (Refworks, EndNote 等) 可在以下网址找到: (另一个版本) 基于元模型的访问控制政策规格语言(中文)
视频
PERM元模型(策略、效果、请求、匹配器)
RBAC? ABAC? .. PERM! New Way of Authorization for Cloud-Based Web Services and Apps (in Russian)
Practice & Examples of Flexible Authorization Using Casbin & PERM (in Russian)
Go
HTTP & RESTful
在Go中使用 Casbin 实现基础的基于角色的 HTTP 授权 (或 中文翻译)
Watcher
RBAC Distributed Synchronization via Casbin Watcher (in Chinese)
Beego
Using Casbin with Beego: 1. Get started and test (in Chinese)
Using Casbin with Beego: 5. Policy update (continued) (in Chinese)
Gin
Tutorial: Integrate Gin with Cabsin
Policy enforcements on K8s with Pipeline
Authentication and authorization in Gin application with JWT and Casbin
Backend API with Go: 1. Authentication based on JWT (in Chinese)
Backend API with Go: 2. Authorization based on Casbin (in Chinese)
Using Go’s authorization library Casbin with Gin and GORM (in Japanese)
Echo
Iris
Iris + Casbin: Practice for permission management (in Chinese)
Role-based access control for HTTP based on Casbin (in Chinese)
Learning iris + Casbin from scratch
VMware Harbor
Casbin: Golang access control framework (in Chinese)
Access control in Harbor (in Chinese)
Argo CD
Organizational RBAC in Argo CD with Casbin
GShark
GShark: Scan for sensitive information in Github easily and effectively (in Chinese)
Java
SprintBoot
Integrating jCasbin with JFinal (in Chinese)
Node.js
Express
How to Add Role-Based-Access-Control to Your Serverless HTTP API on AWS
Koa
Authorisation with Casbin and Koa Part 1
Authorisation with Casbin and Koa Part 2
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
Fastify
Access Control in Node.js with Fastify and Casbin
PHP
Casbin, Powerful and Efficient ACL for Your Projects
Laravel
Laravel authorization: authorization library supporting ACL, RBAC, ABAC and other models
.NET
Using Casbin for authorization in dotnet
Rust
How to use casbin authorization in your rust web-app [Part - 1]
How to use casbin authorization in your rust web-app [Part - 2]