This repo is an example of how to implement OAuth using the Axum web framework in Rust. Hosted on Shuttle.
Make sure you set up your Google OAuth, which you can find a link to set up here.
Git clone the repo:
git clone https://github.com/joshua-mo-143/oauth-axum-shuttle-ex.git
cd oauth-axum-shuttle-ex
Set your secrets in the Secrets.toml file:
GOOGLE_OAUTH_CLIENT_ID = "your-client-id"
GOOGLE_OAUTH_CLIENT_SECRET = "your-client-secret"
Use cargo shuttle run
and visit http://localhost:8000
once the app is running, then try it out!