{"id":25097400,"url":"https://github.com/everysoftware/auth365","last_synced_at":"2025-04-02T02:41:54.799Z","repository":{"id":275789310,"uuid":"922888605","full_name":"everysoftware/auth365","owner":"everysoftware","description":"Asynchronous OAuth 2.0 client for such known platforms as Google, Yandex, Telegram, etc.","archived":false,"fork":false,"pushed_at":"2025-02-04T17:20:22.000Z","size":522,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-19T12:52:10.287Z","etag":null,"topics":["fastapi","httpx","oauth"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/everysoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://boosty.to/everysoftware"}},"created_at":"2025-01-27T09:15:35.000Z","updated_at":"2025-02-04T18:03:52.000Z","dependencies_parsed_at":"2025-02-04T16:35:03.528Z","dependency_job_id":null,"html_url":"https://github.com/everysoftware/auth365","commit_stats":null,"previous_names":["everysoftware/auth365"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everysoftware%2Fauth365","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everysoftware%2Fauth365/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everysoftware%2Fauth365/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everysoftware%2Fauth365/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/everysoftware","download_url":"https://codeload.github.com/everysoftware/auth365/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246746870,"owners_count":20827061,"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","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":["fastapi","httpx","oauth"],"created_at":"2025-02-07T17:31:36.660Z","updated_at":"2025-04-02T02:41:54.777Z","avatar_url":"https://github.com/everysoftware.png","language":"Python","funding_links":["https://boosty.to/everysoftware"],"categories":[],"sub_categories":[],"readme":"# Auth365\n\n**Effortless asynchronous OAuth 2.0 client for popular platforms**\n\n---\n\n[![Test](https://github.com/everysoftware/fastid/actions/workflows/test.yml/badge.svg)](https://github.com/everysoftware/fastid/actions/workflows/test.yml)\n[![CodeQL Advanced](https://github.com/everysoftware/fastid/actions/workflows/codeql.yml/badge.svg)](https://github.com/everysoftware/fastid/actions/workflows/codeql.yml)\n\n---\n\n## Features\n\n- **Asynchronous**: Built on top of `httpx` is fully asynchronous.\n- **Built-in support**: For popular OAuth 2.0 providers like **Google**, **Yandex**, **Telegram**, etc.\n- **Extensible**: Easily add support for new OAuth 2.0 providers.\n- **Easy to use**: Simple and intuitive API.\n\n## Installation\n\n```bash\n  pip install auth365\n```\n\n## Get Started\n\n```python\nfrom typing import Annotated\n\nfrom fastapi import FastAPI, Depends\nfrom starlette.responses import RedirectResponse\n\nfrom auth365.providers.google import GoogleOAuth\nfrom auth365.schemas import OAuth2Callback, OpenID\nfrom examples.config import settings\n\napp = FastAPI()\n\ngoogle_oauth = GoogleOAuth(\n    client_id=settings.google_client_id,\n    client_secret=settings.google_client_secret,\n    redirect_uri=\"http://localhost:8000/callback\",\n)\n\n\n@app.get(\"/login\")\nasync def login() -\u003e RedirectResponse:\n    async with google_oauth:\n        url = await google_oauth.get_authorization_url()\n        return RedirectResponse(url=url)\n\n\n@app.get(\"/callback\")\nasync def oauth_callback(callback: Annotated[OAuth2Callback, Depends()]) -\u003e OpenID:\n    async with google_oauth:\n        await google_oauth.authorize(callback)\n        return await google_oauth.userinfo()\n\n```\n\nNow you can run the server and visit `http://localhost:8000/login` to start the OAuth 2.0 flow.\n\n![screenshot-1738081195921.png](assets/screenshot-1738081195921.png)\n\nAfter logging into Google, you will be redirected to the callback URL. The server will then fetch the user's OpenID\ninformation and return it as a response.\n![screenshot-1738081352079.png](assets/screenshot-1738081352079.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverysoftware%2Fauth365","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feverysoftware%2Fauth365","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverysoftware%2Fauth365/lists"}