https://github.com/astralmortem/fastauth
Here’s a ready-to-use, customizable solution for FastAPI with Authentication, Authorization (RBAC), and OAuth2 support. This solution provides token based authentication(JWT, Redis, DB), role-based access control, and OAuth2 integration.
https://github.com/astralmortem/fastauth
authentication authorization fastapi jwt jwt-authentication oauth2 orm python rbac token
Last synced: 6 months ago
JSON representation
Here’s a ready-to-use, customizable solution for FastAPI with Authentication, Authorization (RBAC), and OAuth2 support. This solution provides token based authentication(JWT, Redis, DB), role-based access control, and OAuth2 integration.
- Host: GitHub
- URL: https://github.com/astralmortem/fastauth
- Owner: AstralMortem
- License: mit
- Created: 2024-12-17T14:53:32.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-12-24T16:10:48.000Z (7 months ago)
- Last Synced: 2024-12-24T17:23:56.079Z (7 months ago)
- Topics: authentication, authorization, fastapi, jwt, jwt-authentication, oauth2, orm, python, rbac, token
- Language: Python
- Homepage: https://astralmortem.github.io/fastauth/
- Size: 1.15 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastAuth
![]()
Ready-to-use customizable solution for FastAPI with Authentication, Authorization(RBAC) and OAuth2 support---
## About[](https://github.com/AstralMortem/fastauth/actions/workflows/ci.yaml)
[](https://astralmortem.github.io/fastauth/)
[](https://codecov.io/github/AstralMortem/fastauth)
[](https://pypi.org/project/fastapi-fastauth/)
[](https://pypi.org/project/fastapi-fastauth/)Here’s a ready-to-use, customizable solution for FastAPI with Authentication, Authorization (RBAC), and OAuth2 support.
This solution provides token based authentication(JWTHelper, Redis, DB), role-based access control, and OAuth2 integration.
Highly inspired by [FastAPI Users](https://github.com/fastapi-users/fastapi-users) and [AuthX](https://github.com/yezz123/authx/tree/main):* **Documentation**:
* **Source Code**:
---## Features
* [x] Authentication Support:
* [x] Access and Refresh Token Dependencies
* [x] Different Token Strategy(JWTHelper, Redis, Session)
* [x] Different Token locations(Header, Cookie, Query, etc.)
* [x] Authorization Support:
* [x] "Role and Permission required" Dependency
* [x] OAuth2 support
* [x] User Management:
* [x] User Model protocol
* [x] Service-Repository pattern for flexible customization
* [x] Popular ORM support:
* [x] SQLAlchemy support
* [ ] Beanie
* [ ] Tortoise ORM