These instructions assume "https://example.com/" is the base URL for your NextCloud. Adjust according to your setup.
- Install the app (see README.md)
- Setup a Google Authorized Domain
- Go to Google Webmaster Tools: https://www.google.com/webmasters/tools/
- Click "Add Property" and enter the full domain that your NextCloud will be accessible at, e.g. example.com
- Optionally verify your site.
- Verify your site ownership via the various methods shown here https://support.google.com/webmasters/answer/9008080?visit_id=637032436952938937-2175615075&rd=1
- Wait a while.
- Confirm that in Google Webmaster Tools you see the property (i.e. domain) you've entered is verified
- Setup a Google app
- Go to https://console.developers.google.com/
- Click the list of projects at the top then "New project"
- Enter whatever project name you want, no need to specify an org; click "Create"
- Click "Create credentials" then click "OAuth client ID"
- Click "Configure consent screen"
- Enter values:
- Application name: something relevant
- Authorized domains: example.com (then hit ENTER; see setup of authorized domains if there's an error)
- Click "Save"
- Click "Web application" for application type and enter values:
- Name: something relevant
- Authorized JavaScript origins: https://example.com (then hit ENTER; see setup of authorized domains if there's an error)
- Authorized redirect URIs: https://example.com/apps/sociallogin/oauth/google (then hit ENTER; see setup of authorized domains if there's an error)
- Click "Save"
- You should see a "client ID" and "client secret"; store these somewhere safe
- Configure "Social Login" in NextCloud
- Click "Settings" in the menu
- Under Administration click "Social login"
- In the bottom section under "Google" enter:
- App id: the "client ID" provided earlier
- Secret: the "client secret" provided earlier
- Default group: Select the group you want users to be assigned
- Click "Save" at the very bottom
- Now, open up a new browser to test the login. On the login screen you should now see "Google" underneath the typical NextCloud login prompt.