This page describes how to set up and configure a third-party configuration before creating the Relativity data store.

## Set up authentication and permissions

You need to set up authentication and permissions in your Relativity instance.

### Create an OAuth 2.0 app

To connect Gemini Enterprise to Relativity, you must create an OAuth 2.0 application in your Relativity environment to obtain a **Client ID**.

1. Sign in to your Relativity instance.
2. Navigate to the **OAuth2 Clients** tab (typically under **Instance Details** or **Setup**).
3. Click **New OAuth2 Client**.
4. Enter a name for the client (for example, `Gemini Enterprise Connector`).
5. Set the **Flow** to **Authorization Code**.
6. In the **Redirect URL** or **Callback URL** field, enter: `https://vertexaisearch.cloud.google.com/oauth-redirect`
7. Save the configuration.
8. Copy the generated **Client ID**.

> [!NOTE]
> **Note:** Relativity does not use a Client Secret for this flow as it relies on PKCE.

### Obtain Instance URI

Identify your Relativity instance URL (for example, `https://<tenant>.r1.kcura.com`). Ensure it does not include a trailing slash.