Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.16 KB

readme.md

File metadata and controls

24 lines (20 loc) · 1.16 KB

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.