{"id":29112768,"url":"https://github.com/jtemporal/minimal-fastapi-api-auth0","last_synced_at":"2025-06-29T11:03:26.398Z","repository":{"id":295512648,"uuid":"985356236","full_name":"jtemporal/minimal-fastapi-api-auth0","owner":"jtemporal","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-17T16:09:05.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T04:02:36.591Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jtemporal.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":"2025-05-17T15:35:41.000Z","updated_at":"2025-05-17T16:09:08.000Z","dependencies_parsed_at":"2025-05-26T00:29:53.062Z","dependency_job_id":null,"html_url":"https://github.com/jtemporal/minimal-fastapi-api-auth0","commit_stats":null,"previous_names":["jtemporal/minimal-fastapi-api-auth0"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jtemporal/minimal-fastapi-api-auth0","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Fminimal-fastapi-api-auth0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Fminimal-fastapi-api-auth0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Fminimal-fastapi-api-auth0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Fminimal-fastapi-api-auth0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jtemporal","download_url":"https://codeload.github.com/jtemporal/minimal-fastapi-api-auth0/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtemporal%2Fminimal-fastapi-api-auth0/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262581282,"owners_count":23331908,"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":"2025-06-29T11:03:25.711Z","updated_at":"2025-06-29T11:03:26.390Z","avatar_url":"https://github.com/jtemporal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Demo API with Auth0\n\nThis application is a sample on how to integrate Auth0 for authentication in a FastAPI API using APIRouter and module separation.\n\n## How to run the API\n\n1. Clone this repository\n   ```\n   git clone https://github.com/jtemporal/minimal-fastapi-api-auth0.git \u0026\u0026 cd minimal-fastapi-api-auth0\n   ```\n\n2. Create a `.config` file from `.config.example` and populate the values from your Auth0 Application.\n   ```\n   cp .config.example .config\n   ```\n   Tip: you can use `openssl rand -hex 32` for the secret key.\n\n3. Create a virtual environment and install dependencies\n   \n   ```\n   # Create a venv\n   python3 -m venv .env \n   \n   # Activate\n   source .env/bin/activate\n   \n   # Install dependencies\n   pip install -r requirements.txt\n   ```\n\n4. Start the server\n\n   ```\n   uvicorn src.main:app --reload\n   ```\n\n## Making requests to the API\n\n### Call a public endpoint\n\n```sh\ncurl -X GET http://localhost:8000/api/public\n```\n\n### Call a private endpoint\n\n```sh\ncurl -X GET http://localhost:8000/api/private\n    -H \"Authorization: Bearer \u003cyour_access_token_here\u003e\" \\\n    -H \"Content-Type: application/json\"\n```\n\n### Call a private endpoint with scopes\n\n```sh\ncurl -X GET http://localhost:8000/api/private-scoped\n    -H \"Authorization: Bearer \u003cyour_access_token_here\u003e\" \\\n    -H \"Content-Type: application/json\"\n```\n\n----\n\nWhere to find me: \n* [Jess' Socials](https://jtemporal.com/socials).\n\n[Sign up for Auth0's developer newsletter here](https://a0.to/nl-signup/python).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtemporal%2Fminimal-fastapi-api-auth0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjtemporal%2Fminimal-fastapi-api-auth0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtemporal%2Fminimal-fastapi-api-auth0/lists"}