メインコンテンツにスキップ

ロールマネージャー

ロールマネージャは、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:)

ロールマネージャー作成者説明
デフォルトのロールマネージャー(ビルトイン)CasbinSupports role hierarchy stored in the Casbin policy
セッションロールマネージャーEDOMO システムSupports role hierarchy stored in the Casbin policy, with time-range-based sessions
Okta ロールマネージャーCasbinOkta に格納されたロール階層をサポート
Auth0 ロールマネージャーCasbinAuth0Authorization Extension に格納されたロール階層をサポート

開発者の場合: すべてのロールマネージャは、 RoleManager インターフェイスを実装する必要があります。 The Session Role Manager can be used as a reference implementation.

API

See the API section for details.