Zum Hauptinhalt springen

Online Editor

Sie können auch den Online-Editor verwenden, um Ihr Casbin-Modell und Ihre Richtlinie in Ihrem Webbrowser zu schreiben. Es bietet Funktionen wie "Syntaxhervorhebung" und "Codevervollständigung", genau wie eine IDE für eine Programmiersprache.

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.

Wenn Sie den entsprechenden Code schreiben möchten, müssen Sie die Musterabgleichfunktion über die entsprechende API angeben. Weitere Informationen finden Sie unter RBAC mit Muster.

notiz

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.