Google GenAI OAuth2 Account
Overview
You can use this account type for authentication with the Google API using the OAuth2 protocol.

Prerequisites
- Valid client ID and client secret. To get the client ID and secret, you must create an OAuth 2 client in the Google Cloud project. Learn more.
- The Google Cloud project that you are using must enable the following APIs:
Limitations and known issues
None.
Account settings
- Expression icon (
): Allows using JavaScript syntax to access SnapLogic Expressions to set field values dynamically (if enabled). If disabled, you can provide a static value. Learn more.
- SnapGPT (
): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
- Suggestion icon (
): Populates a list of values dynamically based on your Snap configuration. You can select only one attribute at a time using the icon. Type into the field if it supports a comma-separated list of values.
- Upload
: Uploads files. Learn more.
Field / Field set | Type | Description |
---|---|---|
Label | String |
Required. Specify a unique label for the account. Default value: N/A Example: Google GenAI OAuth2 Account |
Client ID | String | Required. Specify the client ID associated with your Google GenAI application. Learn more about Obtaining Client ID and Secret. Default value: N/A Example: 1234567890-abc123def456.apps.googleusercontent.com |
Client secret | String | Required. Specify the client secret associated with your account. You can create the client secret as advised by your application provider. The client secret will be securely stored in SnapLogic's cloud. Default value: N/A Example: bec1f9242f9nsh67f2276b9ws4cadd14 |
Access token | String | Auto-generated after authorization. The access token associated with the Google application is used to make API requests on behalf of the application associated with the client ID. Default value: N/A Example: <Value encrypted> |
Refresh token | String |
Auto-generated after authorization. The token used to refresh the access token. |
Access token expiration | String | Auto-generated after authorization. The access token expiration value. Default value: N/A Example: 1656423824 |
OAuth2 authorization endpoint* | String | Required. Specify the OAuth2 auth endpoint to get the access token. Default value: https://accounts.google.com/o/oauth2/auth Example: https://accounts.google.com/o/oauth2/auth |
OAuth2 token endpoint | String | Required. Specify the authorization endpoint to authorize the application. Default value: https://oauth2.googleapis.com/token Example: https://oauth2.googleapis.com/token |
Token endpoint config | Use this field set to configure token endpoint parameters as necessary for the account. | |
Token endpoint parameter | String | Required. Specify the custom properties for the OAuth2 token endpoint. Default value: N/A Example: token_endpoint |
Token endpoint parameter value | String | Required. Specify a token endpoint parameter value. Default value: N/A Example: https://oauth2.googleapis.com/token |
Authorization endpoint config | Use this field set to configure the authorization endpoint parameters. | |
Authentication parameter | String/Expression/ Suggestion | Specify an optional authentication parameter. Default value: access-type, scope Example: redirect_uri |
Authentication parameter value | String/Expression | Specify an optional authentication parameter value. Default value: offline, https://www.googleapis.com/auth/generative-language.retriever https://www.googleapis.com/auth/cloud-platform Example: https://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/googlegenai |
Authorize | Button | Click this button to authorize the account. |
Project ID | String/Expression/ Suggestion | Specify the Google Project ID. Default value: N/A Example: my-genai-project-123456 |
Location | String/Expression/ Suggestion | Specify the default location for the API calls. Default value: N/A Example: us-central1 |
Next Steps
After you configure the account settings, click Authorize to authenticate your account.