Skip to content

sergeialimov/oauth-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth Axum Rust Example

This repo is an example of how to implement OAuth using the Axum web framework in Rust. Hosted on Shuttle.

How to Run

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!

About

Implement OAuth using the Axum web framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages