AhmetFurkanDEMIR / FastAPI-Authentication-with-JWT

FastAPI Authentication with JWT (JSON Web Tokens)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FastAPI Authentication with JWT

dd

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/

About

FastAPI Authentication with JWT (JSON Web Tokens)


Languages

Language:Python 97.5%Language:Dockerfile 2.5%