Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.08 KB

Readme.md

File metadata and controls

36 lines (25 loc) · 1.08 KB

axum google oauth2 example

What is in this Repository

An example implementation of Google OAuth2/OIDC authentication for Axum. This was inspired by example implimentation for discord.

I wrote a blog post about this repository.

blog-20241206-02.mp4

How to use App

CLIENT_ID=$client_id
CLIENT_SECRET=$client_secret
ORIGIN='https://localhost:3443'

#(Optional: Run ngrok by `ngrok http 3000`)
#ORIGIN="https://xxxxx.ngrok-free.app"
  • Start the application
cargo run