Configure OAuth authentication for Google Cloud

The Snowflake connector for Google Analytics Aggregate Data is subject to the Connector Terms.

About customer-provided OAuth client authentication

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

  • An 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.

  • An OAuth Client ID that is used to authenticate an application to Google. This 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 project. For information about creating Google Cloud projects, see the Google Cloud documentation.

Note

If possible, create an OAuth consent screen in a Google Cloud 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.

Configure the OAuth client ID

In this procedure, you acquire a redirect URL from Snowsight and paste it into your Google Cloud project.

  1. In Snowsight, start the Snowflake Connector for Google Analytics Aggregate Data configuration wizard.

  2. In the third step of the connector configuration, Authenticate Google Cloud Platform, copy the value from the Redirect URL section.

  3. In your Google Cloud project, to open the OAuth consent screen creator, select APIs & Services » Credentials.

  4. Select Create credentials » OAuth client ID.

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

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

  7. Select Authorized redirect URIs » Add URI.

  8. Select Create.

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

  10. Return to the Snowflake Connector for Google Analytics Aggregate Data interface, and paste the values into the corresponding boxes.

  11. Select Sign in.