package
0.0.0-20240811142457-7e33354fa83f
Repository: https://github.com/hidevopsio/middleware.git
Documentation: pkg.go.dev
# README
Casbin
iris web framework's casbin middleware.
The authorization determines a request based on {subject, object, action}
. Please refer to the Casbin's documentation in order to understand how it works first.
$ go get github.com/casbin/casbin
$ go get github.com/hidevopsio/middleware/casbin
Table of contents
- using wrapper, recommended as it provides the full casbin's functionalities
- using middleware, register to a specific routes or parties
Each example has its own model, configuration and its tests, please read them as well.