From e326fc3dc03a3840b4b430e67d98c2c81ca041b9 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Fri, 21 Aug 2020 19:26:07 +0200 Subject: [PATCH] Added Google Oauth configuration --- OAuth-Login-with-Github-and-Google.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OAuth-Login-with-Github-and-Google.md b/OAuth-Login-with-Github-and-Google.md index 40a7f84..6b145ea 100644 --- a/OAuth-Login-with-Github-and-Google.md +++ b/OAuth-Login-with-Github-and-Google.md @@ -24,6 +24,5 @@ If you log out from Calibre-Web, you will see a little Github account on the log ### Setup Google as Oauth provider -Your help is needed. If you are using Google as OAuth provider to Calibre-Web, please document the setup procedure here. - -The Callbackroutine should be: ...`login/google/authorized` \ No newline at end of file +Go to the ![Google Developer console](https://console.developers.google.com) and create a project. After doing so, click on `Credentials`, and `Create Credentials`. Select `Oauth client ID`. Select `Web application` as Appliation type. In the Authorized redirect URIs add your callback URI, it should end with `login/google/authorized`. After clicking on `Create` a popup opens displaying your client ID and your Client secret. Copy this information in the corresponding fields in Calibre-Web. should see the Application in the `OAuth 2.0 Client IDs` table section. After closing the popup you can copy the Client ID from the displayed table. To det the client screct you have to download the config (with the little arrow point downwards symbol and search for the text client_secret in the downloaded file. +Important: To make the OAuth Login working with Google you should set the `OAUTHLIB_RELAX_TOKEN_SCOPE` environment variable. Otherwise the verification fails with an Internal Server Error ... "Warning: Scope has changed from..." in Calibre-Web.