googleGoogle Authentication

Set up shared Google OAuth authentication for Gmail, Google Calendar, Google Chat, Google Docs, Google Drive, and Google Sheets.

Use this guide when you connect a Google integration in Kognitos with Continue with Google.

You can create one Google OAuth app in Google Cloud and reuse the same Client ID and Client Secret across these integrations:

circle-info

Google Docs, Google Drive, and Google Sheets also support service account authentication. This page covers the shared OAuth setup that works across all six Google integrations. For service account setup, see Google Service Account Authentication.

Before You Start

Make sure you have:

  • Access to a Google Cloud project, or permission to create one

  • Permission to configure the Google Auth Platform and create OAuth clients

  • Access to the Kognitos workspace where you want to add the connection

If your organization wants to avoid Google's unverified app warning, create the OAuth app as an Internal app in your Google Workspace organization.

Set Up the OAuth App in Google Cloud

1

Create or select a Google Cloud project

In Google Cloud Consolearrow-up-right, create a new project or open an existing one that will own the OAuth app.

2

Configure the consent screen

In Google Auth Platform, set up the consent screen for the project:

  1. Enter an app name.

  2. Select a user support email.

  3. Choose Internal as the audience if the app should only be used by people in your Google Workspace organization.

  4. Add a contact email.

  5. Accept Google's user data policy and save the configuration.

3

Create the OAuth client

Create a new client with these settings:

  • Application type: Web application

  • Authorized redirect URI: https://app.us-1.kognitos.com/oauth/connections/callback

Copy the Client ID and Client Secret after you create the client. Store the secret somewhere secure in case Google only shows it once.

circle-exclamation
4

Enable the APIs you need

In APIs & ServicesLibrary, enable the APIs for the Google integrations you plan to use:

Integration
API to enable

Gmail API

Google Calendar API

Google Chat API

Google Docs API and Google Drive API

Google Drive API

Google Sheets API

If you plan to use several Google integrations, enable all of their APIs in the same project.

circle-info

If you use Google Chat, open the Google Chat API configuration after you enable the API and complete the app details before you connect it in Kognitos:

  • App name: for example, Kognitos

  • Avatar URL: https://www.kognitos.com/img/favicon.svg

  • Description: for example, Google Chat integration with Kognitos

  • Enable Build this Chat app as a Workspace add-on

  • Disable Interactive features

Use the Credentials in Kognitos

After you create the OAuth client in Google Cloud, connect each Google integration in Kognitos with the same credentials.

1

Open the integration

In Kognitos, go to IntegrationsExplore Integrations, then open the Google integration you want to connect.

2

Start a new connection

Click Connect, add a connection name, and choose the OAuth option if Kognitos asks you to select an authentication method.

3

Enter your OAuth client details

Paste the Client ID and Client Secret from Google Cloud.

4

Authorize with Google

Click Continue with Google, sign in to Google, grant access, and return to Kognitos.

Repeat this for each Google integration you want to connect. You can reuse the same OAuth app across all six integrations.

Troubleshooting

Issue
What to check

Redirect URI mismatch

Confirm the redirect URI is exactly https://app.us-1.kognitos.com/oauth/connections/callback

Unverified app warning

Make sure the OAuth app audience is set to Internal, and the user belongs to the same Google Workspace organization

Access blocked

Verify that the API for the integration is enabled in the Google Cloud project

Missing client secret

Create a new client secret in Google Cloud, then update the connection in Kognitos

Last updated

Was this helpful?