FastAPI-Authentication-with-JWT
FastAPI-Authentication-with-JWT copied to clipboard
FastAPI Authentication with JWT (JSON Web Tokens)
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.
# 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/