Ana içeriğe atla

Role Managers

The role manager implements the RBAC role hierarchy (who has which role, and role inheritance). Casbin can use the default in-memory role manager (backed by policy) or plug in external sources (e.g. LDAP, Okta, Auth0, Azure AD). Custom role managers live in separate packages. List of available role managers by language:

Role manager Author Description
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 Supports role hierarchy stored in Okta
Auth0 Role Manager Casbin Supports role hierarchy stored in Auth0's Authorization Extension

All role managers must implement the RoleManager interface. Use the Session Role Manager as a reference implementation.

API

Ayrıntılar için API bölümüne bakın.