This page describes how to set up and configure a Google Cloud project with the necessary OAuth credentials before creating the Google Stitch data store.
Create OAuth app and client credentials
To set up OAuth credentials for Google Stitch, a Google Cloud administrator must perform the following steps in the Google Cloud console.
Enable the Google Stitch API
In the Google Cloud console, enable the Google Stitch API.
- Go to the API Library page.
- In the search box, enter
Google Stitch APIorStitch APIand click the result. - Click Enable.
Create an OAuth consent screen
If you don't have an OAuth consent screen configured for your project, follow these steps:
- Go to the OAuth consent screen page.
- Enter the required information, such as the App name, User support email, and Developer contact information.
- Under Scopes, click Add or remove scopes and add the following scope:
https://www.googleapis.com/auth/aida
- Under Audience, select the user type for your app:
- Internal: If the app is restricted to members of your organization.
- External: If you want to make it available to any Google user. If you select External, you must add test users under Test users.
- Save your changes.
Create OAuth client credentials
To create a new OAuth client ID and client secret:
- Go to the Credentials page.
- Click Create Credentials and select OAuth client ID.
- For Application type, select Web application.
- In the Name field, enter a name for the credentials.
- In the Authorized redirect URIs section, click Add URI and enter the
following URI:
https://vertexaisearch.cloud.google.com/oauth-redirect - Click Create.
- In the dialog that appears, copy the Client ID and Client Secret, and save them securely.