Generating OAuth 2.0 Authentication Credentials

The Google Workspace connector uses the OAuth 2.0 protocol for authentication and authorization of the Google Workspace APIs. It supports the following OAuth 2.0 scenarios:

  • Client Credentials (OAuth 2.0 for Web Server Applications)

  • Service Account (OAuth 2.0 for Server to Server Applications)

Client Credentials

This section describes the procedures for generating the Client ID, Client Secret, and Refresh Token.

Note
When generating the credentials (client and service account), complete the procedures by using a Google Workspace User who has permission to generate refresh tokens and has the required Roles/IAM Roles to manage Google Workspace and CGP data as mentioned in the Prerequisites, Required Roles for Google Workspace and GCP Management section.

Service Account

A service account is an account that belongs to the application. Create a service account for the project in the API console and delegate domain-wide access to the service account. Now add the required scopes in admin console against the service account Client ID.