{"id":17376000,"url":"https://github.com/mgorsk1/fastapi_oauth2","last_synced_at":"2025-03-27T19:49:33.593Z","repository":{"id":58439208,"uuid":"531868547","full_name":"mgorsk1/fastapi_oauth2","owner":"mgorsk1","description":"A minimal example of adding oauth2 proxy authentication to your FastAPI microservice.","archived":false,"fork":false,"pushed_at":"2022-09-02T10:46:04.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T22:29:19.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgorsk1.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}},"created_at":"2022-09-02T09:47:53.000Z","updated_at":"2022-10-25T10:04:56.000Z","dependencies_parsed_at":"2022-09-10T20:12:11.151Z","dependency_job_id":null,"html_url":"https://github.com/mgorsk1/fastapi_oauth2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgorsk1%2Ffastapi_oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgorsk1%2Ffastapi_oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgorsk1%2Ffastapi_oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgorsk1%2Ffastapi_oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgorsk1","download_url":"https://codeload.github.com/mgorsk1/fastapi_oauth2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245916288,"owners_count":20693389,"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":[],"created_at":"2024-10-16T04:22:07.487Z","updated_at":"2025-03-27T19:49:33.567Z","avatar_url":"https://github.com/mgorsk1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fast API with Oauth2 Proxy\n\nThis is a minimal example of adding OAuth2 Proxy Authentication (Keycloak provider) to your FastAPI microservice.\n\nThis approach 'hides' original FastAPI backend behind OAuth2 proxy, which handles communication with Keycloak and passes\naccess token to your API after successful login.\n\n## Prerequisites\n\nAdd to your `/etc/hosts`:\n\n```text\n127.0.0.1 keycloak\n127.0.0.1 oidc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgorsk1%2Ffastapi_oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgorsk1%2Ffastapi_oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgorsk1%2Ffastapi_oauth2/lists"}