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:

1. Sign in to your GitLab account and navigate to the group for
   which you want to create an application.

2. Go to the selected group.

3. Select **Settings** \> **Applications**.

4. In the **Name** field, enter a name for your application.

5. In the **Redirect URI** field, enter `https://vertexaisearch.cloud.google.com/oauth-redirect`.

6. 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**.
7. 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.
8. Copy the **Application ID** and **Secret** values that are generated, and store them securely for later use.