{"id":24123812,"url":"https://github.com/cleanenergyexchange/fastapi-zitadel-auth","last_synced_at":"2026-03-17T10:13:20.833Z","repository":{"id":266553917,"uuid":"887161071","full_name":"cleanenergyexchange/fastapi-zitadel-auth","owner":"cleanenergyexchange","description":"OAuth2 in FastAPI apps using Zitadel","archived":false,"fork":false,"pushed_at":"2025-08-18T12:33:08.000Z","size":879,"stargazers_count":27,"open_issues_count":9,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-08-19T04:11:35.638Z","etag":null,"topics":["asyncio","fastapi","jwks","jwt","oauth2","oidc","zitadel"],"latest_commit_sha":null,"homepage":"https://cleanenergyexchange.github.io/fastapi-zitadel-auth/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cleanenergyexchange.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-12T09:18:44.000Z","updated_at":"2025-08-15T00:14:14.000Z","dependencies_parsed_at":"2024-12-04T21:32:38.712Z","dependency_job_id":"ed9d3e08-0775-41b2-b200-6e2ed39cee87","html_url":"https://github.com/cleanenergyexchange/fastapi-zitadel-auth","commit_stats":null,"previous_names":["cleanenergyexchange/fastapi-zitadel-auth"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/cleanenergyexchange/fastapi-zitadel-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanenergyexchange%2Ffastapi-zitadel-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanenergyexchange%2Ffastapi-zitadel-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanenergyexchange%2Ffastapi-zitadel-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanenergyexchange%2Ffastapi-zitadel-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cleanenergyexchange","download_url":"https://codeload.github.com/cleanenergyexchange/fastapi-zitadel-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanenergyexchange%2Ffastapi-zitadel-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275774183,"owners_count":25526170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","fastapi","jwks","jwt","oauth2","oidc","zitadel"],"created_at":"2025-01-11T13:18:17.158Z","updated_at":"2025-09-18T13:32:07.463Z","avatar_url":"https://github.com/cleanenergyexchange.png","language":"Python","funding_links":[],"categories":["Third-Party Extensions"],"sub_categories":["Auth"],"readme":"# FastAPI Zitadel Auth\n\n\u003cp\u003e\n    \u003cem\u003eSimplify OAuth2 authentication and authorization in FastAPI apps using \u003cb\u003e\u003ca href=\"https://zitadel.com\"\u003eZitadel\u003c/a\u003e\u003c/b\u003e.\u003c/em\u003e\n\u003c/p\u003e\n\n\u003ca href=\"https://github.com/cleanenergyexchange/fastapi-zitadel-auth/actions/workflows/test.yml\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/cleanenergyexchange/fastapi-zitadel-auth/actions/workflows/test.yml/badge.svg\" alt=\"Test status\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/cleanenergyexchange/fastapi-zitadel-auth\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/cleanenergyexchange/fastapi-zitadel-auth/graph/badge.svg?token=A3TSXDVLQT\" alt=\"Code coverage\"/\u003e \n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/pypi/fastapi-zitadel-auth\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/fastapi-zitadel-auth.svg?logo=pypi\u0026logoColor=white\u0026label=pypi\" alt=\"Package version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/projects/fastapi-zitadel-auth\"\u003e\n    \u003cimg src=\"https://static.pepy.tech/badge/fastapi-zitadel-auth/month\" alt=\"PyPI downloads\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://python.org\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/python-v3.10+-blue.svg?logo=python\u0026logoColor=white\u0026label=python\" alt=\"Python versions\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://mypy-lang.org\"\u003e\n    \u003cimg src=\"https://www.mypy-lang.org/static/mypy_badge.svg\" alt=\"mypy\"\u003e\n\u003c/a\u003e\n\n---\n\n**Documentation**: \u003ca href=\"https://cleanenergyexchange.github.io/fastapi-zitadel-auth\" target=\"_blank\"\u003ehttps://cleanenergyexchange.github.io/fastapi-zitadel-auth\u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/cleanenergyexchange/fastapi-zitadel-auth\" target=\"_blank\"\u003ehttps://github.com/cleanenergyexchange/fastapi-zitadel-auth\u003c/a\u003e\n\n---\n\n## Features\n\n* Authorization Code flow with PKCE\n* JWT validation using JWKS\n* Role-based access control using Zitadel roles\n* Service user authentication (JWT Profile)\n* Swagger UI integration\n* Type-safe token validation\n* Extensible claims and user models\n* Async loading of OpenID configuration\n\n\n\n\u003e **Note:** This library implements JWT, locally validated using JWKS, as it prioritizes performance, \nsee [Zitadel docs on Opaque tokens vs JWT](https://zitadel.com/docs/concepts/knowledge/opaque-tokens#use-cases-and-trade-offs). \nIf you need to validate opaque tokens using Introspection, \nplease [open an issue](https://github.com/cleanenergyexchange/fastapi-zitadel-auth/issues?q=is%3Aissue%20state%3Aopen%20introspection) – PRs are welcome!\n\n\n## License\n\nThis project is licensed under the terms of the [MIT license](https://github.com/cleanenergyexchange/fastapi-zitadel-auth/blob/main/LICENCE).\n\n## Acknowledgements\n\nThis package was heavily inspired by [intility/fastapi-azure-auth](https://github.com/intility/fastapi-azure-auth/). \nGive them a star ⭐️!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleanenergyexchange%2Ffastapi-zitadel-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleanenergyexchange%2Ffastapi-zitadel-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleanenergyexchange%2Ffastapi-zitadel-auth/lists"}