Ready-to-use customizable solution for FastAPI with Authentication, Authorization(RBAC) and OAuth2 support
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. Highly inspired by FastAPI Users and AuthX:
- Documentation: https://astralmortem.github.io/fastapi-fastauth/
- Source Code: https://github.com/AstralMortem/fastapi-fastauth
- Authentication:
- Access and Refresh Token Dependencies
- Different Token Strategy(JWT, Redis, Database)
- Different Token locations(Header, Cookie, Query, etc.)
- Authorization:
- Roles and Permission support
- OAuth2 support
- User Management:
- User Model protocol
- Service-Repository pattern for flexible customization
- Popular ORM support:
- SQLAlchemy support
- Beanie
- Tortoise ORM
