https://github.com/ahmetfurkandemir/fastapi-authentication-with-jwt
FastAPI Authentication with JWT (JSON Web Tokens)
https://github.com/ahmetfurkandemir/fastapi-authentication-with-jwt
fastapi jwt jwt-authentication postgresql python
Last synced: 6 months ago
JSON representation
FastAPI Authentication with JWT (JSON Web Tokens)
- Host: GitHub
- URL: https://github.com/ahmetfurkandemir/fastapi-authentication-with-jwt
- Owner: AhmetFurkanDEMIR
- Created: 2022-09-19T13:24:20.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-19T15:19:15.000Z (about 3 years ago)
- Last Synced: 2025-04-15T21:52:13.305Z (6 months ago)
- Topics: fastapi, jwt, jwt-authentication, postgresql, python
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 20
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
    
# FastAPI Authentication with JWT

An 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.
```bash
# Cleaning up Docker images
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)# Running all images (While in the project folder)
sudo docker-compose up -d
```**Resource :** https://fastapi.tiangolo.com/tutorial/security/oauth2-jwt/