Missing google_secret.json blocks docker-compose
Closed this issue · 7 comments
COPY install/google_secret.json /usr/local/etc
there is no install/google_secret.json in the repo so the above line terminates the build
The server documentation says to copy this file before calling docker-compose, see the 'Important' section. I'm a bit unclear at the moment where to get this json config.
@ekse To use Google's OAuth2 you will need to register with their developer console (https://console.developers.google.com), create a project, click Credentials, click Create Credentials, click OAuth Client ID, select Web application for application type and fill out the remainder of the form. Google will generate a json config that you can use to authenticate users through their OAuth service.
Hope that helps
_demonduck
Will update documentation to outline the steps to get a valid json config to enable Google OAuth
got an other error:
InvalidClientSecretsError: Missing property "redirect_uris" in a client type of "web".
it seems there is no "redirect_uris" in google_secret.json
@jessie4736, when you create your Client ID for web application you need to register authorized redirect URIs through Google's developer console. You will want to add the below redirect
http://my-personal-first-server.com/oauth/google
Make sure you specify the right protocol and domain. Unfortunately, iirc, you cannot specify an IP address, but you can use localhost.
@demonduck
got it!
it works!
thanks very much!