Skip to content

Files

Latest commit

372f682 · Feb 7, 2025

History

History

casbin

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/v2@latest
$ go get github.com/iris-contrib/middleware/casbin@master

Table of contents

Each example has its own model, configuration and its tests, please read them as well.