Casbin

Casbin

  • 문서
  • API
  • 편집기
  • IDE Plugins
  • Single Sign-On (SSO)
  • Forum
  • 도움말
  • 블로그
  • Pricing
  • Contact Sales
  • Languages icon한국어
    • English
    • 中文
    • Русский
    • Français
    • Deutsch
    • 日本語
    • 번역 참여하기
  • GitHub

›기초

기초

  • 개요(Overview)
  • 시작하기
  • 작동 원리
  • 자습서

모델

  • 지원하는 접근 제어 모델
  • 모델(Model) 문법
  • Effector
  • 함수
  • RBAC
  • RBAC with Pattern
  • RBAC + 도메인
  • Casbin RBAC v.s. RBAC96
  • ABAC
  • Priority Model
  • Super Admin

저장소

  • 모델(Model) 저장
  • 정책(Policy) 저장
  • 정책(Policy) 부분 집합 불러오기

확장 기능

  • Enforcers
  • 어댑터
  • 감시자
  • Dispatchers
  • 역할(Role) 관리자
  • 미들웨어
  • GraphQL Middlewares
  • Cloud Native Middlewares

API

  • API Overview
  • Management API
  • RBAC API
  • RBAC with Domains API
  • RoleManager API
  • Data Permissions

고급 사용법 (Advanced usage)

  • 멀티 스레딩
  • 벤치마크
  • Performance Optimization
  • Authorization of Kubernetes
  • Authorization of Service Mesh through Envoy

관리

  • 관리자 포탈
  • Casbin 서비스
  • 로깅 및 오류 처리
  • Frontend Usage

Editor

  • 온라인 편집기
  • IDE Plugins

자세히

  • Casbin 적용 사례
  • Contributing
  • Privacy Policy
  • Terms of Service
Translate

자습서

Before reading, please note that some tutorials are for the Casbin's model and work for all Casbin implementations in different languages. Some other tutorials are language-specific.

Our Papers

  • PML: 웹 서비스를 위한 인터프리터 기반 접근 제어 정책 언어

이 논문은 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}
}
  • Access Control Policy Specification Language Based on Metamodel (in Chinese)

This is another longer-version paper published in Journal of Software. The citation for different formats (Refworks, EndNote, etc.) can be found at: (another version) Access Control Policy Specification Language Based on Metamodel (in Chinese)

Videos

  • A Secure Vault - implementing authorization middleware with Casbin - JuniorDevSG
  • Sharing user permissions in a micro-service architecture based on Casbin (in Russian)
  • Nest.js - Casbin RESTful RBAC authorization midleware
  • Gin Tutorial Chapter 10: Learn Casbin basic models in 30 minutes
  • Gin Tutorial Chapter 11: Coding, API and custom function in Casbin
  • Gin + Casbin: Learning Permissions in Action (in Chinese)
  • jCasbin Basics: A simple RBAC example (in Chinese)
  • Golang's RBAC based on Casbin (in Chinese)
  • Learning Gin + Casbin (1): Opening & Overview (in Chinese)
  • ThinkPHP 5.1 + Casbin: Introduction (in Chinese)
  • ThinkPHP 5.1 + Casbin: RBAC authorization (in Chinese)
  • ThinkPHP 5.1 + Casbin: RESTful & Middleware (in Chinese)
  • Quick Start for PHP-Casbin (in Chinese)
  • ThinkPHP 5.1 + Casbin:How to use custom matching functions (in Chinese)
  • Webman + Casbin: How to use Webman Casbin Plugin (in Chinese)

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
  • 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
Java
Node.js
PHP
.NET
Rust
Lua

HTTP & RESTful

  • Basic Role-Based HTTP Authorization in Go with Casbin (or Chinese translation)

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

  • Authorization in Golang Projects using Casbin
  • 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

  • Web authorization with Casbin

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)

SpringBoot

  • jCasbin: a more light-weight permission management solution (in Chinese)
  • Integrating jCasbin with JFinal (in Chinese)

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
  • Casbin, Powerful and Efficient ACL for Your Projects

Laravel

  • Laravel authorization: authorization library supporting ACL, RBAC, ABAC and other models
  • Using Casbin for authorization in dotnet
  • 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]

APISIX

  • Authorization in APISIX using Casbin
← 작동 원리지원하는 접근 제어 모델 →
Casbin
Docs
Getting StartedManagement APIRBAC APIMiddlewares
Community
Who's using Casbin?Stack Overflow
Casbin          jCasbin
Node-Casbin   PHP-CasbinPyCasbin          Casbin.NETCasbin-CPP        Casbin-RS
Follow @casbinHQ
Copyright © 2022 Casbin Organization