Google OAuth App
  • 25 Sep 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Google OAuth App

  • Dark
    Light

Article summary

Connecting Google OAuth App

Create a new project

  1. 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.

  1. Name your project unleash-integrationsand click Create.

Enable API services

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

  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:

Configure the OAuth consent screen

  1. Create a new internal screen.

  1. Fill the required App Information:

    1. Name - Unleash

    2. Support email

    3. Developer Contact Information

  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

Creating Credentials

  1. Create a new OAuth Credentials at https://console.cloud.google.com/apis/credentials/oauthclient.

  1. Select the app type as Web Application.

  1. Name your app Unleash and add the Callback URL provided by your Unleash representative.

  1. Copy your newly created credentials (Client ID and Client Secret), store them securely, and share them with your Unleash representative.

Link Provisioning

  1. To support link provisioning in your environment, you must also generate Service Account Credentials.

  1. Name your app and create the service account

  1. Click it

  1. Create a new JSON key pair

  1. Download the JSON file and share with your Unleash representative


Was this article helpful?