Skip to content

sandervandorsten/fastapi-oauth-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI application with Oauth2 login using JWT

Example application containing an Oauth2 login flow using JWT. The application was built for educational purposes to test and demonstrate the use of Oauth2 and JWT in a python based backend application.

It uses some security measures which have not been tested extensively, hence this project should not be considered for production.

Inspiration

Installation using docker-compose

  • copy the example.env file and generate your own secret key for JWT.
cp example.env .env
openssl rand -hex 32
  • build and run application using docker-compose.
docker-compose up -d --build

This opens up an API on localhost on port 8083.