Éditeur en ligne
Vous pouvez également utiliser l'éditeur en ligne (https://casbin.org/fr/editor/) pour écrire votre modèle et votre politique Casbin dans votre navigateur Web. Il fournit des fonctionnalités telles que la coloration syntaxique
et la complétion de code
, tout comme un IDE pour un langage de programmation.
Utiliser le modèle
If you use RBAC with pattern
or RBAC with all pattern
, it specifies the pattern matching function in the lower left corner. . If you want to write the equivalent code, you need to specify the pattern matching function through the relevant api. See RBAC with Pattern
note
The editor is based on node-casbin. Due to the synchronization delay between different language of casbin, the authentication result of the editor
may be different from the authentication result of the casbin you are using. If so, please submit issues to the casbin repository you are using.