Create new project

To add a Google OAuth app, you will need to create a dedicated project for Unleash in your Google Cloud Console. You can do this by visiting the following URL: https://console.cloud.google.com/projectcreate.

image.png

Name your project unleash-integrationsand click Create

image.png

Enable API Services

Select your newly created project, then navigate to the API & Services section by visiting this link.

image.png

  1. For Google Drive Enable:
    1. Google Drive API (https://console.cloud.google.com/apis/api/drive.googleapis.com)
    2. Admin SDK API (https://console.cloud.google.com/apis/api/admin.googleapis.com)
    3. People API (https://console.cloud.google.com/apis/api/people.googleapis.com)
  2. For Gmail Enable:
    1. Gmail API (https://console.cloud.google.com/apis/api/gmail.googleapis.com)
  3. For Google Calendar Enable:
    1. Google Calendar API https://console.cloud.google.com/apis/api/calendar-json.googleapis.com

Your Enabled APIs screen should look like this

image.png

Configure the OAuth consent screen

  1. Create new internal screen

image.png

  1. Fill the required App Information
    1. Name - Unleash
    2. Support email
    3. Developer Contact Information

image.png

  1. Configure the relevant scopes
    1. For all applications add -
      1. openid
      2. ./auth/userinfo.email
      3. /auth/userinfo.profile
    2. For Google Drive add -
      1. /auth/admin.directory.user.readonly
      2. /auth/admin.directory.domain.readonly
      3. /auth/admin.directory.group.readonly
      4. /auth/contacts.readonly
      5. /auth/drive.photos.readonly
      6. /auth/drive.readonly
      7. /auth/drive.metadata.readonly
      8. /auth/drive.activity.readonly
    3. For Gmail add -
      1. /auth/gmail.readonly
    4. For Google Calendar add
      1. /auth/calendar.readonly