feat: github & google login

This commit is contained in:
Elias Renman
2025-03-20 10:09:57 +01:00
parent 02a35cc555
commit 6361532c1e
23 changed files with 1664 additions and 44 deletions

14
Rocket.toml.example Normal file
View 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"