Casbin

Casbin

  • 文档
  • API
  • 编辑器
  • JetBrains 插件
  • Dashboard
  • 论坛
  • OA
  • 趋势
  • 云服务
  • 帮助
  • 博客
  • Languages icon中文
    • English
    • 한국어
    • 参与翻译
  • GitHub

›扩充功能

基础知识

  • 概述
  • 开始使用
  • 工作原理
  • 教程

Model

  • 支持的Models
  • Model语法
  • 函数
  • 基于角色的访问控制
  • 域内RBAC
  • ABAC

存储

  • Model存储
  • Policy存储
  • 政策子集加载

扩充功能

  • 适配器
  • 观察者
  • 调度器
  • 角色管理器
  • 中间件

API

  • 管理 API
  • RBAC API

高级用法。

  • 多线程
  • 基准测试

管理

  • 管理员门户
  • Casbin 服务
  • 日志 & 错误处理
  • 在线编辑器
  • Frontend Usage

更多

  • 本项目使用者
  • 隐私政策
  • 服务条款
Translate

观察者

我们支持使用分布式消息系统,例如 etcd 来保持多个Casbin执行器实例之间的一致性。 因此,我们的用户可以同时使用多个Casbin 执行器来处理大量的权限检查请求。

与策略存储 adapters类似,我们没有把watcher的代码放在主库中。 任何对新消息系统的支持都应该作为atcher程序来实现。 完整的Casbin watchers列表如下所示。 欢迎任何第三方对 watcher 进行新的贡献,如果有请告知我们,我将把它放在这个列表中:)

Go
Java
Node.js
Python
.NET
WatcherTypeAuthorDescription
Etcd WatcherKV storeCasbinWatcher for etcd
NATS WatcherMessaging systemSolutoWatcher for NATS
ZooKeeper WatcherKV storeGrepsrWatcher for Apache ZooKeeper
Redis WatcherKV store@billcobblerWatcher for Redis
GCP Pub/Sub WatcherMessaging systemLivingPacketsWatcher for Google Cloud Platform PUB/SUB
NATS, RabbitMQ, GCP Pub/Sub, AWS SNS & SQS, Kafka, InMemoryMessaging SystemrusenaskWatcher based on Go Cloud Dev Kit that works with leading cloud providers and self-hosted infrastructure
WatcherTypeAuthorDescription
Etcd AdapterKV store@fanlideWatcher for etcd
WatcherTypeAuthorDescription
Etcd WatcherKV storeCasbinWatcher for etcd
Redis WatcherKV storeCasbinWatcher for Redis
Pub/Sub WatcherMessaging systemhjlWatcher for Google Cloud Pub/Sub
Postgres WatcherDatabaseMatteo CollinaWatcher for PostgreSQL
WatcherTypeAuthorDescription
Redis WatcherKV storeScienceLogicWatcher for Redis
PostgreSQL WatcherDatabaseCasbinWatcher for PostgreSQL
WatcherTypeAuthorDescription
Redis WatcherKV store@SbouWatcher for Redis

WatcherEx

In order to support incremental synchronization between multiple instances, we provide the WatcherEx interface. We hope it can notify other instances when the policy changes, but there is currently no implementation of WatcherEx. We recommend that you use dispatcher to achieve this.

← 适配器调度器 →
  • WatcherEx
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.