mirror of
https://github.com/eliasrenman/url-shortener.git
synced 2026-03-16 20:16:06 +01:00
feat: github & google login
This commit is contained in:
14
Rocket.toml.example
Normal file
14
Rocket.toml.example
Normal file
@@ -0,0 +1,14 @@
|
||||
[default.oauth.github]
|
||||
provider = "GitHub"
|
||||
client_id = "<client_id>"
|
||||
client_secret = "<client_secret>"
|
||||
|
||||
# redirect_uri is optional for this library. If left out, it must still be set
|
||||
# correctly on the provider's configuration page for the OAuth2 application.
|
||||
#redirect_uri = "http://localhost:8000/auth/github"
|
||||
|
||||
[default.oauth.google]
|
||||
provider = "Google"
|
||||
client_id = "<client_id>"
|
||||
client_secret = "<client_secret>"
|
||||
redirect_uri = "http://localhost:8000/auth/google"
|
||||
Reference in New Issue
Block a user