Register a Client with Google

Register a Client with Google

To configure Social Login, we first need to create a client on Google. This document explains how to register a client in Google.

Create a project

  1. Head over to Google API and create an account using your email address.



  2. Check the terms of service checkbox, and click AGREE AND CONTINUE to proceed.
  3. Click CREATE PROJECT on the dashboard.



  4. Give your project a name (for example, "The Art Store")  and choose the organization that will be fetched automatically from your email address, if it's a corporate email address. 
  5. Click CREATE.




Get started

  1. The project dashboard will now be visible to you. Click the navigation menu in the top-left corner of the dashboard.



  2. From the menu, choose Credentials under APIs & Services.



  3. Click the +Create Credential button at the top of the page.
  4. Select OAuth client ID from the dropdown menu.



  5. Click the CONFIGURE CONSENT SCREEN button. To create an OAuth ID, a product name first needs to be set on the Consent screen.



  6. On the Consent screen, select the audience of your app. Choose Internal if the audience will only be from within your organization. Choose External if you want the audience to be anyone with a Gmail account. Click CREATE.



  7. Enter the App name and App logo. Provide a User support email for users to get in touch with you if they have questions or concerns about their consent.



  8. Provide links to your authorized domain name (the domain of your website), the application's home page link, the application's privacy policy link, and the terms of service link. Enter the developer's contact information, which can be in the form of one or multiple email addresses. 



  9. Click SAVE AND CONTINUE.
  10. Click the ADD OR REMOVE SCOPES button if you would like to do so. Access to sensitive scopes will lead to Google verifying the consent screen before it is published. 



  11. Select from the list or manually add scopes.
  12. Click UPDATE.




A summary of the Consent screen will be visible to you. Confirm the details and click Back to Dashboard.

Notes: After configuring the OAuth Consent screen, the credentials need to be generated for Client ID and Client secret.

Create OAuth Client ID

  1. Click +CREATE CREDENTIALS and select OAuth client ID from the dropdown. 



  2. From the application type dropdown, choose Web application.



  3. Enter the Name as "Web client 1". This will be used to identify the client in the console, and won't be visible to end users.



  4. Under Authorized JavaScript origins, click ADD URI and enter the domain of your website.  
  5. Enter Authorized redirect URIs. This is the redirect URI specified in Member Portal -> Preferences -> Social Login. 
  6. Click Create. A client will be created. The Client ID and Client Secret will be displayed on the screen.



Notes: Switch back to Zoho Sites and configure social login by using the Client ID and Client Secret copied from the above step.