Updated OAuth Login with Github and Google (markdown)

Ozzie Isaacs 2024-05-02 19:55:13 +02:00
parent a538f02e78
commit bb5c3511e1
1 changed files with 1 additions and 1 deletions

@ -24,5 +24,5 @@ If you log out from Calibre-Web, you will see a little Github account on the log
### Setup Google as Oauth provider
Go to the ![Google Developer console](https://console.cloud.google.com/) and create a project. After doing so, click on `Credentials`, and `Create Credentials`. Select `Oauth client ID`. Select `Web application` as Application 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. You 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 get the client secrect you have to download the config (with the little arrow pointing downwards symbol and search for the text client_secret in the downloaded file.
Go to the ![Google Developer console](https://console.cloud.google.com) and create a project. After doing so, click on `Credentials`, and `Create Credentials`. Select `Oauth client ID`. Select `Web application` as Application 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. You 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 get the client secrect you have to download the config (with the little arrow pointing 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.