jebrosen / rocket_oauth2

OAuth2 for Rocket applications
Apache License 2.0
67 stars 26 forks source link

##Question: Other OAuth2 Providers? #21

Closed migeruj closed 3 years ago

migeruj commented 3 years ago

Hi! Where i can find another examples (i check github and reddit but im looking for facebook and google).

jebrosen commented 3 years ago

The user_info_hyper_sync_rustls example includes both GitHub and Google examples. I don't know of any reddit examples; which one are you referring to?

In any case, the only thing that you should need to change in configuration is to use facebook instead of github in the Rocket.toml file. That will use the login and token exchange URIs for facebook, and the API token returned in the TokenResponse should be able to be used with Facebook's API.

migeruj commented 3 years ago

My bad, I was looking at the documentation for version 0.0.5. Thanks for example @jebrosen