https://github.com/alexferl/falcon-casbin
Casbin RBAC Middleware for Falcon
https://github.com/alexferl/falcon-casbin
casbin falcon falcon-framework falcon-middleware python-falcon rbac
Last synced: about 1 year ago
JSON representation
Casbin RBAC Middleware for Falcon
- Host: GitHub
- URL: https://github.com/alexferl/falcon-casbin
- Owner: alexferl
- License: mit
- Created: 2022-01-27T23:43:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-06T00:39:30.000Z (over 2 years ago)
- Last Synced: 2025-02-26T12:04:30.728Z (over 1 year ago)
- Topics: casbin, falcon, falcon-framework, falcon-middleware, python-falcon, rbac
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# falcon-casbin [](https://codecov.io/gh/alexferl/falcon-casbin)
A simple [Falcon](https://github.com/falconry/falcon) module for [Casbin](https://casbin.org/) using
[RBAC](https://casbin.org/docs/en/rbac).
## Install
```shell
pip install falcon-casbin
```
## Usage
```python
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](https://github.com/falconry/falcon-policy).