주요 콘텐츠로 건너뛰기

Online Editor

온라인 에디터를 사용하여 웹 브라우저에서 Casbin 모델과 정책을 작성할 수도 있습니다. 프로그래밍 언어의 IDE처럼 '구문 강조' 및 '코드 완성'과 같은 기능을 제공합니다.

Use Custom Functions

If you need to use a customized matching function (e.g. "RBAC with Patterns"), you can add it by clicking the "Add Role Matching" button at the bottom left corner of the editor.

editor-tips.

동등한 코드를 작성하려면 관련 API를 통해 패턴 매칭 함수를 지정해야 합니다. 자세한 정보는 패턴이 있는 RBAC을 참조하십시오.

노트

The editor supports multiple Casbin implementations, including Node-Casbin (Node.js), JCasbin (Java), Casbin (Go), and Casbin-rs (Rust). You can switch between different implementations in the upper right corner to test your model and policy.

Although the editor validates through a remote CLI, due to environment differences, the validation results may differ slightly from the results you get in your local environment. If you encounter any issues, please submit them to the corresponding Casbin implementation repository.