Added Google Oauth configuration

OzzieIsaacs 2020-08-21 19:26:07 +02:00
parent 031cd0cfbb
commit e326fc3dc0
1 changed files with 2 additions and 3 deletions

@ -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`
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.