{"id":18601024,"url":"https://github.com/shubhamdutta2000/api-key-authentication-with-fastapi","last_synced_at":"2026-04-18T07:31:25.127Z","repository":{"id":115943548,"uuid":"550784174","full_name":"Shubhamdutta2000/API-Key-Authentication-with-FastAPI","owner":"Shubhamdutta2000","description":"API key-based authentication. This is authentication in the form of an arbitrary string with an arbitrary length, which gives access to an API.","archived":false,"fork":false,"pushed_at":"2023-02-14T23:13:52.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-16T17:13:38.723Z","etag":null,"topics":["api-key-authentication","authentication","fastapi","hacktoberfest","postgresql"],"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/Shubhamdutta2000.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":"2022-10-13T10:17:33.000Z","updated_at":"2023-03-04T08:55:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"979ef13e-2c1d-4461-8fb1-b5fdb36a2474","html_url":"https://github.com/Shubhamdutta2000/API-Key-Authentication-with-FastAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shubhamdutta2000/API-Key-Authentication-with-FastAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shubhamdutta2000%2FAPI-Key-Authentication-with-FastAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shubhamdutta2000%2FAPI-Key-Authentication-with-FastAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shubhamdutta2000%2FAPI-Key-Authentication-with-FastAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shubhamdutta2000%2FAPI-Key-Authentication-with-FastAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shubhamdutta2000","download_url":"https://codeload.github.com/Shubhamdutta2000/API-Key-Authentication-with-FastAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shubhamdutta2000%2FAPI-Key-Authentication-with-FastAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31961081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["api-key-authentication","authentication","fastapi","hacktoberfest","postgresql"],"created_at":"2024-11-07T02:06:53.540Z","updated_at":"2026-04-18T07:31:25.112Z","avatar_url":"https://github.com/Shubhamdutta2000.png","language":"Python","readme":"# API Key Authentication with FastAPI\n\n\u003e This is authentication in the form of an arbitrary string of any length that allows access to an API.\n\n## Feature:\n\n- DB Connection Configuration with PostgresSQL and store all db creds in .env file and load it from seperate EnvConfig file.\n- API Key Authentication for:\n  - Checking for a query parameter containing the API key\n  - Checking for a header containing the API key\n  - Checking for a cookie containing the API key\n- GET Endpoint to expose all data with proper Pagination (of particular page and limit)\n- When no query parameter is specified in the api, the page and limit are set by default which are stored in .env file.\n\n\u003cbr /\u003e\n\n## References:\n\n- https://nilsdebruin.medium.com/fastapi-authentication-revisited-enabling-api-key-authentication-122dc5975680\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamdutta2000%2Fapi-key-authentication-with-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubhamdutta2000%2Fapi-key-authentication-with-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamdutta2000%2Fapi-key-authentication-with-fastapi/lists"}