1-) Go to the Google API Console website: https://console.developers.google.com/
2-) Select or create a new project. Then go to the OAuth consent screen. Select the option External for User Type. Then click the Create button.
3-) Fill in all the required information about your website:
App Name: Your website’s name
User support email: Add your email here
Application home page: Home page of your website
Application privacy policy link: Privacy policy link of your website
Application terms of service link: Terms of service link of your website
Authorized Domains: Add you website domain in this format: test.com
Developer contact information: Add your email here
4-) Go to Credentials. Click the +Create Credentials button. Then select the OAuth client ID option.
5-) On the next page, Fill in all the required information:
Application Type: Web Application option.
Name: Give it a Name, for example “Google Login”
Authorized Javascript Origins: enter the home page link of your website with 4 variations in this format:
Notice: Replace “test” with your site domain.
Redirect URLs: enter the four variations of the home page link with the following extension: sponsors/googleauth.php for example:
Notice: Replace “test” with your site domain.
Notice: In order to configure Google login, first it is needed to have a live domain (URL) connected to your site. If you would like to change the domain of your website, contact our team on the email: support@edirectory.com.
If you don't enter this information exactly as it is described, the integration won't work. When you are done, click the Create button.
6-) Copy your Client ID and Client Secret.
7-) Go back to your site manager. Go to Settings → Sign in options, and select the "Enable sign in using Google" checkbox. Paste your Client ID and Client Secret. Then click on the Save Changes button.