Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 621 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 621 Bytes

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.