Casbin

Casbin

  • Docs
  • API
  • Editor
  • JetBrains Plugin
  • Casdoor
  • Forum
  • OA
  • Trend
  • Help
  • Blog
  • Languages iconEnglish
    • 中文
    • 한국어
    • Русский
    • Français
    • 日本語
    • Help Translate
  • GitHub

›Extensions

The Basics

  • Overview
  • Get Started
  • How it Works
  • Tutorials

Model

  • Supported Models
  • Syntax for Models
  • Function
  • RBAC
  • RBAC with Domains
  • ABAC

Storage

  • Model Storage
  • Policy Storage
  • Policy Subset Loading

Extensions

  • Adapters
  • Watchers
  • Dispatchers
  • Role Managers
  • Middlewares

API

  • Management API
  • RBAC API

Advanced Usage

  • Multi-threading
  • Benchmarks
  • Performance Optimization

Management

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

More

  • Our Adopters
  • Privacy Policy
  • Terms of Service
Edit

Middlewares

Web frameworks

Go
Java
Node.js
PHP
Python
.NET
Rust
NameDescription
GinA HTTP web framework featuring a Martini-like API with much better performance, via plugin: authz or gin-casbin (thanks to @maxwellhertz)
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
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
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 (thanks to @prongbang)
IrisThe fastest web framework for Go in (THIS) Earth. HTTP/2 Ready-To-GO, via plugin: casbin (thanks to @hiveminded) or iris-middleware-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 (thanks to @kgosse)
gqlgenGo library for building GraphQL servers without any fuss, via plugin: gqlgen_casbin_RBAC_example
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
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
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
CakePHPBuild fast, grow solid PHP Framework, via plugin: cake-casbin
CodeIgniter4Associate 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-casbin
HyperfA coroutine framework that focuses on hyperspeed and flexibility, via plugin: hyperf-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)
FastAPIA modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints, via plugin: fastapi-authz
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, template: rocket-casbin-demo
Last updated on 2/28/2021
← Role ManagersManagement API →
Casbin
Docs
Getting StartedManagement APIRBAC APIMiddlewares
Community
Who's using Casbin?ForumStack OverflowProject Chat
Casbin          jCasbin
Node-Casbin   PHP-CasbinPyCasbin          Casbin.NETCasbin-CPP        Casbin-RS
Follow @CasbinNews
Copyright © 2021 Casbin contributors.