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 Namefield, enter a name for your application.
-
In the Redirect URIfield, enter
https://vertexaisearch.cloud.google.com/oauth-redirect. -
In the Scopessection, 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 IDfield.
- The OAuth2 Client Secret, accessible by selecting Copyin the Secretfield.
- The Renew secretfunction. 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 IDand Secretvalues that are generated, and store them securely for later use.

