ramosbugs / oauth2-rs

Extensible, strongly-typed Rust OAuth2 client library
Apache License 2.0
865 stars 151 forks source link

Code review of FusionAuth OAuth2 Rust guide please? #242

Closed RichardJECooke closed 6 months ago

RichardJECooke commented 6 months ago

Hi, I'm writing a quickstart guide on using your library with FusionAuth.

Everything runs, but I think the two Rust files could be improved. I'm not a Rust programmer and I used ChatGPT mostly. Please would you take a look and let me know what to change?

Specifically in the auth.rs file:

To run:

git clone https://github.com/ritza-co/fusionauth-quickstart-rust-actix-web.git
git checkout code_review
docker compose up 
cd your-application
cargo run

You can login with admin@example.com and password at http://localhost:9012 (and FusionAuth at http://localhost:9011)

ramosbugs commented 6 months ago

I would be happy to discuss a consulting arrangement to help your business with this FusionAuth integration. Please email me at ramos@cs.stanford.edu if you'd like to discuss further.