prijatelilab / PrijateliTree

A FastAPI application used to play lab games and collect survey data.
MIT License
1 stars 0 forks source link

Login with password #130

Closed anisfeld closed 8 months ago

anisfeld commented 10 months ago

What Issue Are You Seeing or What Feature Needs To Be Added?

PHASE 1

~PHASE 2~ ~- [ ] setup JWT token creation (https://www.fastapitutorial.com/blog/jwt-autentication-fastapi/)~ ~- [ ] adjust authentication route to provide tokens (https://www.fastapitutorial.com/blog/authentication-in-fastapi/)~ ~- [ ] add authorization to admin functions (https://www.fastapitutorial.com/blog/authentication-in-fastapi/) or maybe use httponly cookies ?? (https://www.fastapitutorial.com/blog/fastapi-jwt-httponly-cookie/)~

We already have tokens thanks to Michael!

Are There Any Links That Would Be Helpful?

The FastAPI developer has a system set up here: https://github.com/tiangolo/full-stack-fastapi-postgresql

FastAPI tutorial is more webapp focused and so very handy! https://www.fastapitutorial.com/blog/fastapi-jwt-httponly-cookie/