This page describes how to set up and configure a third-party configuration before creating the GitLab data store.
Set permissions and obtain client ID and client secret
To register a GitLab app and obtain the client ID and client secret, do the following:
Sign in to your GitLab account and navigate to the group for which you want to create an application.
Go to the selected group.
Select Settings > Applications.
In the Name field, enter a name for your application.
In the Redirect URI field, enter
https://vertexaisearch.cloud.google.com/oauth-redirect.In the Scopes section, select the appropriate scope based on your needs:
- For search-only access, select read_api.
- For search and actions (write) access, select api.
Select Save application. GitLab provides:
- The OAuth2 Client ID in the Application ID field.
- The OAuth2 Client Secret, accessible by selecting Copy in the Secret field.
- The Renew secret function. Use this function to generate and copy a new secret for this application. Renewing a secret prevents the existing application from functioning until the credentials are updated.
Copy the Application ID and Secret values that are generated, and store them securely for later use.