Configuring OAuth authentication for Google Cloud Platform (GCP)

About customer-provided OAuth client authentication

An application that authenticates to Google using OAuth 2.0 must provide two objects in GCP:

  • OAuth consent screen that tells users who is requesting access to their data and what kind of data users are allowing your application to access.

  • OAuth Client ID used to authenticate an application to Google. It is necessary when you want to access resources owned by your end user.

You must provide your own OAuth consent screen and client ID to authenticate.

Prerequisites

To provide the OAuth consent screen and OAuth client ID, you must first create a Google Cloud Platform (GCP) project. Refer to the GCP documentation for information on creating GCP projects.

Note

If possible, create an OAuth consent screen in a GCP project that belongs to an organization. Ensure that the connector users are members of the same organization.

If your project does not belong to an organization, you must renew authentication every seven days.

Configuring the OAuth client ID

To configure the OAuth Client ID, do the following:

  1. To open the OAuth consent screen creator, select APIs & Services » Credentials in your GCP project.

  2. Select Create credentials » OAuth client ID.

  3. In the Application type dropdown list, select Web application.

  4. In the Name box, enter the following name: Snowflake Connector for Google Analytics Aggregate Data ID.

  5. Select Authorized redirect URIs » Add URI.

  6. Now you will need the redirect URL that is displayed in the user interface of the connector. Go to the Snowsight and start Snowflake Connector for Google Analytics Aggregate Data configuration wizard. Go to the third step of the connector configuration: Authenticate Google Cloud Platform. Copy the value from the Redirect URL section.

  7. Go back to the GCP interface, and paste the value to the URI box.

  8. Select Create.

  9. Copy the Your Client ID and Your Client Secret values.

  10. Paste the values into the corresponding boxes in the Snowflake Connector for Google Analytics Aggregate Data interface.

  11. Select Sign in.