角色管理器
角色管理器用于管理Casbin中的RBAC角色层次结构(用户角色映射)。 A role manager can retrieve role data from Casbin policy rules or external sources such as LDAP, Okta, Auth0, Azure AD, etc. 我们支持不同的角色管理器实现。 To keep the lightweight, we don't include role manager code in the main library (except the default role manager). A complete list of Casbin role managers is provided below. Any third-party contributions for a new role manager are welcome. Please inform us, and we will add it to this list:)
- Go
- Java
- Node.js
- PHP
- Python
角色管理器 | 作者 | 描述 |
---|---|---|
Default Role Manager (built-in) | Casbin | Supports role hierarchy stored in the Casbin policy |
Session Role Manager | EDOMO Systems | Supports role hierarchy stored in the Casbin policy, with time-range-based sessions |
Okta Role Manager | Casbin | 支持存储在Okta中的角色层次结构 |
Auth0 Role Manager | Casbin | 支持存储在 Auth0's Authorization Extension 授权扩展名中的角色层次结构 |
对于开发人员:所有角色管理器都必须实现 RoleManager 接口。 The Session Role Manager can be used as a reference implementation.
角色管理器 | 作者 | 描述 |
---|---|---|
Default Role Manager (built-in) | Casbin | Supports role hierarchy stored in the Casbin policy |
对于开发人员:所有角色管理器都必须实现 RoleManager 接口。 The Default Role Manager can be used as a reference implementation.
角色管理器 | 作者 | 描述 |
---|---|---|
Default Role Manager (built-in) | Casbin | Supports role hierarchy stored in the Casbin policy |
Session Role Manager | Casbin | Supports role hierarchy stored in the Casbin policy, with time-range-based sessions |
对于开发人员:所有角色管理器都必须实现 RoleManager 接口。 The Default Role Manager can be used as a reference implementation.
角色管理器 | 作者 | 描述 |
---|---|---|
Default Role Manager (built-in) | Casbin | Supports role hierarchy stored in the Casbin policy |
对于开发人员:所有角色管理器都必须实现 RoleManager 接口。 The Default Role Manager can be used as a reference implementation.
角色管理器 | 作者 | 描述 |
---|---|---|
Default Role Manager (built-in) | Casbin | Supports role hierarchy stored in the Casbin policy |
对于开发人员:所有角色管理器都必须实现 RoleManager 接口。 The Default Role Manager can be used as a reference implementation.
API
See the API section for details.