Online Editor
Puoi anche utilizzare l'editor online per scrivere il tuo modello e la tua politica di Casbin nel tuo browser web. Fornisce funzionalità come "evidenziazione della sintassi" e "completamento del codice", proprio come un IDE per un linguaggio di programmazione.
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.
.
Se desideri scrivere il codice equivalente, devi specificare la funzione di corrispondenza dei pattern attraverso l'API pertinente. Fai riferimento a RBAC con Pattern per ulteriori informazioni.
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.