{"id":38521877,"url":"https://github.com/pysnippet/fastapi-oauth2","last_synced_at":"2026-01-17T06:42:09.623Z","repository":{"id":180921493,"uuid":"653163555","full_name":"pysnippet/fastapi-oauth2","owner":"pysnippet","description":"Easy to integrate OAuth2 authentication with support for several identity providers.","archived":false,"fork":false,"pushed_at":"2024-12-20T08:37:38.000Z","size":260,"stargazers_count":84,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-25T16:08:29.647Z","etag":null,"topics":["allauth","auth","authentication","fastapi","login","middleware","oauth","oauth2","python","security","social","sso"],"latest_commit_sha":null,"homepage":"https://docs.pysnippet.org/fastapi-oauth2","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/pysnippet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-06-13T14:17:23.000Z","updated_at":"2025-08-09T02:56:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4a3dc15-980f-4ae9-a2c8-a7fe24e98900","html_url":"https://github.com/pysnippet/fastapi-oauth2","commit_stats":null,"previous_names":["pysnippet/fastapi-oauth2"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/pysnippet/fastapi-oauth2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pysnippet%2Ffastapi-oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pysnippet%2Ffastapi-oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pysnippet%2Ffastapi-oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pysnippet%2Ffastapi-oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pysnippet","download_url":"https://codeload.github.com/pysnippet/fastapi-oauth2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pysnippet%2Ffastapi-oauth2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28502819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["allauth","auth","authentication","fastapi","login","middleware","oauth","oauth2","python","security","social","sso"],"created_at":"2026-01-17T06:42:09.550Z","updated_at":"2026-01-17T06:42:09.608Z","avatar_url":"https://github.com/pysnippet.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastapi-oauth2 \u003cimg src=\"https://github.com/pysnippet.png\" align=\"right\" height=\"64\" /\u003e\n\n[![PyPI](https://img.shields.io/pypi/v/fastapi-oauth2.svg)](https://pypi.org/project/fastapi-oauth2/)\n[![Playground](https://img.shields.io/badge/playground-blue.svg?logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNz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pypi.org/project/fastapi-oauth2/)\n[![FastAPI](https://img.shields.io/badge/fastapi-%E2%89%A50.68.1-009486)](https://pypi.org/project/fastapi-oauth2/)\n[![Tests](https://github.com/pysnippet/fastapi-oauth2/actions/workflows/tests.yml/badge.svg)](https://github.com/pysnippet/fastapi-oauth2/actions/workflows/tests.yml)\n[![Docs](https://github.com/pysnippet/fastapi-oauth2/actions/workflows/docs.yml/badge.svg)](https://github.com/pysnippet/fastapi-oauth2/actions/workflows/docs.yml)\n\nFastAPI OAuth2 is a middleware-based social authentication mechanism supporting several OAuth2 providers. It leverages\nthe [social-core](https://github.com/python-social-auth/social-core) authentication backends and integrates seamlessly\nwith FastAPI applications.\n\n## Integration\n\nFor integrating the package into an existing FastAPI application, the router with OAuth2 routes and\nthe `OAuth2Middleware` with particular [configs](https://docs.pysnippet.org/fastapi-oauth2/integration/configuration)\nshould be added to the application.\n\n```python\nfrom fastapi import FastAPI\nfrom fastapi_oauth2.middleware import OAuth2Middleware\nfrom fastapi_oauth2.router import router as oauth2_router\n\napp = FastAPI()\napp.include_router(oauth2_router)\napp.add_middleware(OAuth2Middleware, config=OAuth2Config(...))\n```\n\n## Contribute\n\nAny contribution is welcome. Always feel free to open an issue or a discussion if you have any questions not covered by\nthe documentation. If you have any ideas or suggestions, please, open a pull request. Your name will shine in our\ncontributors' list. Be proud of what you build!\n\n## License\n\nCopyright (C) 2023 Artyom Vancyan. [MIT](https://github.com/pysnippet/fastapi-oauth2/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpysnippet%2Ffastapi-oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpysnippet%2Ffastapi-oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpysnippet%2Ffastapi-oauth2/lists"}