Obtain Client Credentials from Google Cloud

This topic explains how to obtain OAuth 2.0 client credentials from Google to use it in Google GenAI OAuth2 Account Account.

To authenticate your Google GenAI OAuth2 Account with Google APIs such as Google GenAI, the account needs Client ID and Client Secret. These credentials are issued through the Google Cloud Console and are required to authorize and access protected resources.

  1. Navigate to https://console.cloud.google.com/.
  2. Create a new Project to associate with your application or use an existing Project.
  3. On the Welcome page, click APIs & Services.
    APIs & Services
  4. In the left navigation pane, click the OAuth consent screen.

  5. Specify the App name, User support email and click Next.

  6. Set the Audience to either Internal or External and fill in the required application details.

  7. Click Next.
  8. click Finish and accept the Google API Services: User Data Policy.
  9. Create OAuth 2.0 credentials.


    1. Navigate to APIs and Services Credentials. Click Create Credentials
    2. Select OAuth client ID.
    3. Choose the application type (example, Web application or Desktop app), and specify the necessary details such as application name and redirect URIs. The Redirect URI must be in this format: {snaplogicBaseUrl}/api/1/rest/admin/oauth2callback/{snappackName}, for example, https://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/googlegenai

      The Client ID and Secret are created.

  10. Download the JSON file containing your Client ID and Client Secret and store it securely.

After completing these steps, your application will have the required OAuth 2.0 credentials to authenticate with Google APIs securely. Use these client credentials to configure your Google GenAI OAuth2 Account.