Skip to content

alexferl/falcon-casbin

Repository files navigation

falcon-casbin codecov

A simple Falcon module for Casbin using RBAC.

Install

pip install falcon-casbin

Usage

import falcon
from falcon_casbin import CasbinMiddleware

casbin = CasbinMiddleware("path/to/model.conf", "path/to/policy.csv")

app = falcon.App(middleware=[casbin])

Credits

Inspired by falcon-policy.