Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum
A

Hi! I'm new to Casbin and want to give it a try in a quite "default" web app, probably by using one of the RBAC flavors. I'm a rather experienced developer, read the docs, understood most of it and highly appreciate the overall quality. What I'm missing are details about how the roles work. I read the examples, am aware of the "role_ definition" section, but don't get what g is actually doing. The examples are all of the kind "declare your g like this and let the magic happen". I would like to understand the details of the magic, but could not find the details. Can somebody explain or point me to the docs in case I missed them?