Simplify OAuth2 authentication and authorization in FastAPI apps using Zitadel.
Documentation: https://cleanenergyexchange.github.io/fastapi-zitadel-auth
Source Code: https://github.com/cleanenergyexchange/fastapi-zitadel-auth
- Authorization Code flow with PKCE
- JWT validation using Zitadel JWKS
- Role-based access control using Zitadel roles
- Service user authentication (JWT Profile)
- Swagger UI integration
- Type-safe token validation
- Extensible claims and user models
Note: This library implements JWT, locally validated using JWKS, as it prioritizes performance, see Zitadel docs on Opaque tokens vs JWT. If you need to validate opaque tokens using Introspection, please open an issue – PRs are welcome!
This project is licensed under the terms of the MIT license.
This package was heavily inspired by intility/fastapi-azure-auth. Give them a star ⭐️!