Role Managers
The role manager is used to manage the RBAC role hierarchy in Casbin.
The role manager handles the RBAC role hierarchy (user-role mapping) in Casbin. It can retrieve role data from Casbin policy rules or from external sources such as LDAP, Okta, Auth0, Azure AD, and others. We support multiple role manager implementations. To keep the main library lightweight, role manager code (except the default implementation) is maintained separately. Below is a complete list of available Casbin role managers. We welcome contributions for new role managers—please let us know, and we'll add them to this list.
All role managers must implement the RoleManager interface. Use the Session Role Manager as a reference implementation.
All role managers must implement the RoleManager interface. Use the Default Role Manager as a reference implementation.
All role managers must implement the RoleManager interface. Use the Default Role Manager as a reference implementation.
All role managers must implement the RoleManager interface. Use the Default Role Manager as a reference implementation.
All role managers must implement the RoleManager interface. Use the Default Role Manager as a reference implementation.
API
See the API section for details.
