I was looking for a guide on implementing Oauth2 in Rust and found this: https://codevoweb.com/how-to-implement-google-oauth2-in-rust/
, but wasn't able to find anything that described how to implement it using a backing database. So I decided to do it myself as an exercise!
You will need to update the values in env.example
then rename to .env
Also make sure that the redirect URI is set in the google cloud console like so:
This is a Vite/React + Actix Web/Rust + PostgresQL stack. Build with docker-compose up --build
and a valid .env
. If all of the config values are set properly and the image builds, you should be able to use an existing Google account to log in like so: