Casbin

Casbin

  • Docs
  • API
  • Editor
  • IDE Plugins
  • Single Sign-On (SSO)
  • Forum
  • Help
  • Blog
  • Pricing
  • Contact Sales
  • Languages iconEnglish
    • 中文
    • 한국어
    • Русский
    • Français
    • Deutsch
    • 日本語
    • Help Translate
  • GitHub

›Extensions

The Basics

  • Overview
  • Get Started
  • How it Works
  • Tutorials

Model

  • Supported Models
  • Syntax for Models
  • Effector
  • Function
  • RBAC
  • RBAC with Pattern
  • RBAC with Domains
  • Casbin RBAC v.s. RBAC96
  • ABAC
  • Priority Model
  • Super Admin

Storage

  • Model Storage
  • Policy Storage
  • Policy Subset Loading

Extensions

  • Enforcers
  • Adapters
  • Watchers
  • Dispatchers
  • Role Managers
  • Middlewares
  • GraphQL Middlewares
  • Cloud Native Middlewares

API

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

Advanced Usage

  • Multi-threading
  • Benchmarks
  • Performance Optimization
  • Authorization of Kubernetes
  • Authorization of Service Mesh through Envoy

Management

  • Admin Portal
  • Casbin Service
  • Log & Error Handling
  • Frontend Usage

Editor

  • Online Editor
  • IDE Plugins

More

  • Our Adopters
  • Contributing
  • Privacy Policy
  • Terms of Service
Edit

Middlewares

Web frameworks

Go
Java
Node.js
PHP
Python
.NET
Rust
Lua
Swift
NameDescription
GinA HTTP web framework featuring a Martini-like API with much better performance, via plugin: authz or gin-casbin
BeegoAn open-source, high-performance web framework for Go, via built-in plugin: plugins/authz
CaddyFast, cross-platform HTTP/2 web server with automatic HTTPS, via plugin: caddy-authz
TraefikThe cloud native application proxy, via plugin: traefik-auth-plugin
Go kitA toolkit for microservices, via built-in plugin: plugins/authz
FiberAn Express inspired web framework written in Go, via middleware: fiber-casbin or fiber-casbinrest or fiber-boilerplate
RevelA high productivity, full-stack web framework for the Go language, via plugin: auth/casbin
EchoHigh performance, minimalist Go web framework, via plugin: echo-authz (thanks to @xqbumu) or casbinrest
IrisThe fastest web framework for Go in (THIS) Earth. HTTP/2 Ready-To-GO, via plugin: casbin (thanks to @hiveminded) or iris-middleware-casbin
GoFrameA modular, powerful, high-performance and enterprise-class application development framework of Golang, via plugin: gf-casbin
NegroniIdiomatic HTTP Middleware for Golang, via plugin: negroni-authz
ChiA lightweight, idiomatic and composable router for building HTTP services, via plugin: chi-authz
BuffaloA Go web development eco-system, designed to make your life easier, via plugin: buffalo-mw-rbac
MacaronA high productive and modular web framework in Go, via plugin: authz
DotWebSimple and easy go web micro framework, via plugin: authz
TangoMicro & pluggable web framework for Go, via plugin: authz
BaaAn express Go web framework with routing, middleware, dependency injection and http context, via plugin: authz
NameDescription
Spring BootMakes it easy to create Spring-powered applications and services, via plugin: casbin-spring-boot-starter or jcasbin-springboot-plugin or Simple SpringBoot security demo with jCasbin
Apache ShiroA powerful and easy-to-use Java security framework that performs authentication, authorization, cryptography, and session management, via plugin: shiro-casbin or shiro-jcasbin-spring-boot-starter
Vert.xA tool-kit for building reactive applications on the JVM, via plugin: vertx-auth-jcasbin
JFinalA simple, light, rapid, independent and extensible Java WEB + ORM framework, via plugin: jfinal-authz
NutzWeb framework (MVC/IOC/AOP/DAO/JSON) for all Java developers, via plugin: nutz-authz
mangoo I/OAn intuitive, lightweight, high performance full stack Java web framework, via built-in plugin: AuthorizationService.java
NameDescription
ShieldAn authZ server and authZ aware reverse-proxy built on top of casbin.
ExpressFast, unopinionated, minimalist web framework for node, via plugin: express-authz
KoaExpressive middleware for node.js using ES2017 async functions, via plugin: koa-authz or koajs-starter or koa-casbin
LoopBack 4A highly extensible Node.js and TypeScript framework for building APIs and microservices, via plugin: loopback4-authorization
NestProgressive Node.js framework for building efficient and scalable server-side applications on top of TypeScript & JavaScript. via plugin: nest-authz or nest-casbin or NestJS Casbin Module or nestjs-casbin or shanbe-api or https://github.com/Twiddlle/acl-nest or nestjs-casbin-typeorm
FastifyFast and low overhead web framework, for Node.js. via plugin: fastify-casbin or fastify-casbin-rest
EggBorn to build better enterprise frameworks and apps with Node.js & Koa, via plugin: egg-authz or egg-zrole
hapiThe Simple, Secure Framework Developers Trust. via plugin: hapi-authz
Casbin JWT ExpressAuthorization middleware that uses stateless JWT token to validate ACL rules using Casbin
NameDescription
LaravelThe PHP framework for web artisans, via plugin: laravel-authz
Yii PHP FrameworkA fast, secure, and efficient PHP framework, via plugin: yii-permission or yii-casbin
CakePHPBuild fast, grow solid PHP Framework, via plugin: cake-permission
CodeIgniterAssociate users with roles and permissions in CodeIgniter4 Web Framework, via plugin: CodeIgniter Permission
ThinkPHP 5.1The ThinkPHP 5.1 framework, via plugin: think-casbin
ThinkPHP 6.0The ThinkPHP 6.0 framework, via plugin: think-authz
SymfonyThe Symfony PHP framework, via plugin: symfony-permission or symfony-casbin
HyperfA coroutine framework that focuses on hyperspeed and flexibility, via plugin: hyperf-permission or hyperf-casbin
EasySwooleA distributed, persistent memory PHP framework based on the Swoole extension, via plugin: easyswoole-permission or easyswoole-hyperfOrm-permission
SlimA PHP micro framework that helps you quickly write simple yet powerful web applications and APIs, via plugin: casbin-with-slim
PhalconA full-stack PHP framework delivered as a C-extension, via plugin: phalcon-permission
webmanHigh performance HTTP Service Framework for PHP based on Workerman, via plugin: webman-permission
webman pluginWebman for casbin plugin, Publish and subscribe Watcher based on Redis,via plugin: casbin
NameDescription
DjangoA high-level Python Web framework, via plugin: django-casbin
FlaskA microframework for Python based on Werkzeug, Jinja 2 and good intentions, via plugin: flask-authz or Flask-Casbin (3rd-party, but maybe more friendly) or rbac-flask
FastAPIA modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints, via plugin: fastapi-authz or Fastapi-app
OpenStackThe most widely deployed open source cloud software in the world, via plugin: openstack-patron
NameDescription
ASP.NET CoreAn open-source and cross-platform framework for building modern cloud based internet connected applications, such as web apps, IoT apps and mobile backends, via plugin: Casbin.AspNetCore
ASP.NET CoreA simple demo of using Casbin at ASP.NET Core framework, via plugin: CasbinACL-aspNetCore
NameDescription
ActixA Rust actors framework, via plugin: actix-casbin
Actix webA small, pragmatic, and extremely fast rust web framework, via plugin: actix-casbin-auth
Rocketa web framework for Rust that makes it simple to write fast, secure web applications without sacrificing flexibility, usability, or type safety, via plugin: rocket-authz or rocket-casbin-auth or rocket-casbin-demo
NameDescription
OpenRestyA dynamic web platform based on NGINX and LuaJIT, via plugin: lua-resty-casbin and casbin-openresty-example
KongA cloud-native, platform-agnostic, scalable API Gateway distinguished for its high performance and extensibility via plugins, via plugin: kong-authz
APISIXA dynamic, real-time, high-performance API gateway, via plugin: authz-casbin
NameDescription
VaporA server-side Swift web framework, via plugin: vapor-authz

Cloud providers

Node.js
NameDescription
OktaOne trusted platform to secure every identity, via plugin: casbin-spring-boot-demo
Auth0An easy to implement, adaptable authentication and authorization platform, via plugin: casbin-auth0-rbac
Last updated on 11/28/2022
← Role ManagersGraphQL Middlewares →
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