FastAPI Zitadel Auth
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
Features
- Authorization Code flow with PKCE
- JWT validation using 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
- Async loading of OpenID configuration
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!
License
This project is licensed under the terms of the MIT license.
Acknowledgements
This package was heavily inspired by intility/fastapi-azure-auth. Give them a star ⭐️!
Metadata
Release files for fastapi-zitadel-auth 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fastapi_zitadel_auth-0.5.0.tar.gz | 225.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastapi_zitadel_auth-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 237.1 kB
Release files / fastapi_zitadel_auth-0.5.0.tar.gz
| Download URL | fastapi_zitadel_auth-0.5.0.tar.gz |
|---|---|
| Size | 225.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18d9fbd19de06ae487d947003b78a2d4c45b02784176a366dbe9904c9e3e2a2e
|
|
BLAKE2b-256 checksum How to use checksums |
5dd3a9620604d0281846eb7b3b588f842d0831c6aeff0017e8600bc631bf3b03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / fastapi_zitadel_auth-0.5.0-py3-none-any.whl
| Download URL | fastapi_zitadel_auth-0.5.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da6facda785d2f018e3f024c36db7b52f9d27c92accb3c51b668600b3107ba39
|
|
BLAKE2b-256 checksum How to use checksums |
403334c22e791de448e0076e66faec30d70559a7648ec6cc139cb1f0a69f7816
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for fastapi-zitadel-auth 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.