Skip to content

ktaka-ccmp/axum-google-oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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