教程
在阅读本教程之前,请注意有的Casbin模型教程适合不同语言执行的的Casbin,然而有的其他的教程是对于特定的语言
我们的论文
PML:一种基于Interpreter的Web服务访问控制策略语言
这篇论文深入介绍了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 等) 可在以下网址找到: (另一个版本) 基于元模型的访问控制政策规格语言(中文)
视频
一个安全保险库 - 实现与 Casbin 的中间件的授权 - JuniorDevSG
Nest.js - Casbin RESTful RBAC授权中间件
Gin 教程 第10章:30分钟内学习 Casbin 基础模型
Gin 教程第11章:编码, API 和Casbin中的自定义功能
ThinkPHP 5.1 + Casbin:RBAC授权 (中文)
ThinkPHP 5.1 + Casbin: RESTfull & 中间件(中文)
PERM元模型(策略、效果、请求、匹配器)
Authorize with Access Control Lists
Access control with PERM and Casbin (in Persian)
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)
Permission management with Casbin (in Chinese)
Analysis of Casbin (in Chinese)
Design of System Permissions (in Chinese)
Casbin: A Permission Engine (in Chinese)
Implementing ABAC with Casbin (in Chinese)
Source code analysis of Casbin (in Chinese)
Permission evaluation with Casbin (in Chinese)
Casbin: Library of the day for Go (in Chinese)
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: 2. Policy storage (in Chinese)
Using Casbin with Beego: 3. Policy query (in Chinese)
Using Casbin with Beego: 4. Policy update (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
jCasbin: a more light-weight permission management solution (in Chinese)
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
Basic Role-Based HTTP Authorization in Rust with Casbin
How to use casbin authorization in your rust web-app [Part - 1]
How to use casbin authorization in your rust web-app [Part - 2]