casbin_example
casbin_example copied to clipboard
A basic web app based on Gin and Casbin
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.4.0 to 1.7.0. Release notes Sourced from github.com/gin-gonic/gin's releases. Release v1.7.0 BUGFIXES fix compile error from #2572 (#2600) fix: print headers without Authorization header on broken pipe...
This repository is so helpful to understand casbin works under the gin web application. But, there are no sample requests to feel RBAC. So I wrote a tiny snippet for...
``` m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act # defines the workflow of authorization: 1. check user's role 2. check the resource which user is...
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.4.0 to 1.7.7. Release notes Sourced from github.com/gin-gonic/gin's releases. Release v1.7.7 BUGFIXES Fixed X-Forwarded-For unsafe handling of CVE-2020-28483 #2844, closed issue #2862 Tree: updated the code logic...