{"id":20638505,"url":"https://github.com/ahmetfurkandemir/fastapi-authentication-with-jwt","last_synced_at":"2025-04-15T21:52:17.918Z","repository":{"id":110786612,"uuid":"538514364","full_name":"AhmetFurkanDEMIR/FastAPI-Authentication-with-JWT","owner":"AhmetFurkanDEMIR","description":"FastAPI Authentication with JWT (JSON Web Tokens)","archived":false,"fork":false,"pushed_at":"2022-09-19T15:19:15.000Z","size":7,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T21:52:13.305Z","etag":null,"topics":["fastapi","jwt","jwt-authentication","postgresql","python"],"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/AhmetFurkanDEMIR.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}},"created_at":"2022-09-19T13:24:20.000Z","updated_at":"2024-12-11T06:13:25.000Z","dependencies_parsed_at":"2023-03-06T21:15:43.677Z","dependency_job_id":null,"html_url":"https://github.com/AhmetFurkanDEMIR/FastAPI-Authentication-with-JWT","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/AhmetFurkanDEMIR%2FFastAPI-Authentication-with-JWT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmetFurkanDEMIR%2FFastAPI-Authentication-with-JWT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmetFurkanDEMIR%2FFastAPI-Authentication-with-JWT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmetFurkanDEMIR%2FFastAPI-Authentication-with-JWT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AhmetFurkanDEMIR","download_url":"https://codeload.github.com/AhmetFurkanDEMIR/FastAPI-Authentication-with-JWT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249161130,"owners_count":21222469,"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","jwt","jwt-authentication","postgresql","python"],"created_at":"2024-11-16T15:18:18.486Z","updated_at":"2025-04-15T21:52:17.913Z","avatar_url":"https://github.com/AhmetFurkanDEMIR.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/Python-FFD43B?style=for-the-badge\u0026logo=python\u0026logoColor=blue) ![](https://img.shields.io/badge/fastapi-109989?style=for-the-badge\u0026logo=FASTAPI\u0026logoColor=white) ![](https://img.shields.io/badge/JWT-000000?style=for-the-badge\u0026logo=JSON%20web%20tokens\u0026logoColor=white) ![](https://img.shields.io/badge/PostgreSQL-316192?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white) ![](https://img.shields.io/badge/Docker-2CA5E0?style=for-the-badge\u0026logo=docker\u0026logoColor=white)\r\n\r\n# FastAPI Authentication with JWT\r\n\r\n![dd](https://user-images.githubusercontent.com/54184905/191049901-7e03657f-782d-460b-865f-994a71447a34.jpg)\r\n\r\nAn example of authentication in APIs you write with FastAPI, In this example, the API part of an Instagram-like post sharing application is tried to be imitated. A special token valid for a certain period of time is transmitted to the user who logs into the API and must have this token in order to use the methods related to the posts.\r\n\r\n```bash\r\n# Cleaning up Docker images\r\ndocker rm -f $(docker ps -a -q)\r\ndocker volume rm $(docker volume ls -q)\r\n\r\n# Running all images (While in the project folder)\r\nsudo docker-compose up -d\r\n```\r\n\r\n**Resource :** https://fastapi.tiangolo.com/tutorial/security/oauth2-jwt/\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetfurkandemir%2Ffastapi-authentication-with-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmetfurkandemir%2Ffastapi-authentication-with-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetfurkandemir%2Ffastapi-authentication-with-jwt/lists"}