Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 17 days 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.

Awesome Lists containing this project

README

        

# FastAuth


FastAuth


Ready-to-use customizable solution for FastAPI with Authentication, Authorization(RBAC) and OAuth2 support

---
## About

[![CI](https://github.com/AstralMortem/fastauth/actions/workflows/ci.yaml/badge.svg)](https://github.com/AstralMortem/fastauth/actions/workflows/ci.yaml)
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/AstralMortem/fastauth/docs.yaml?label=Docs)](https://astralmortem.github.io/fastauth/)
[![codecov](https://codecov.io/github/AstralMortem/fastauth/graph/badge.svg?token=SI6ND9SIPU)](https://codecov.io/github/AstralMortem/fastauth)
[![PyPI - Version](https://img.shields.io/pypi/v/fastapi-fastauth)](https://pypi.org/project/fastapi-fastauth/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/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