## G2 integration G2 is a software marketplace and peer-review platform with market research and buyer-intent data. Integrating G2 with Frontegg lets your application browse products, categories, and vendors, read reviews, snippets, and ratings, manage research boards, and access buyer-intent data on behalf of your users — all through Frontegg's integration layer using G2's OAuth 2.0 authorization. Prerequisites - A [G2](https://www.g2.com/) account with access to the [G2 Developer Portal](https://my.g2.com/developers) ### Connect G2 You register an OAuth 2.0 app in the G2 Developer Portal. The app provides the **Client ID** and **Client Secret** and defines the **redirect URL** that G2 returns users to after they authorize access. #### Step 1: Open the OAuth Apps page Sign in to the [G2 Developer Portal](https://my.g2.com/developers) and open the **OAuth Apps** tab. Click **New OAuth App**. ![G2 Developer Portal OAuth Apps page with the New OAuth App button](/assets/g2-1.eee49d009c66f5c289a855f01bf7edd0ce00ab18c7812827456a3b2f8186b479.1ce25488.png) #### Step 2: Fill in the app details Complete the **New OAuth App** form: - **Name** — A descriptive name, for example `Frontegg Integration`. - **Privacy Policy URL** and **Terms of Service URL** — Your app's URLs. - **Redirect URLs** — Your Frontegg Redirect URL: `https://YOUR_MCP_GATEWAY_URL/integration-callback` - **Confidential** — Leave this checked (the client secret is stored securely on Frontegg's server). - **Permissions** — Select **Read** for each endpoint your integration needs (for example, Products, Reviews, Vendors, Research Boards). OpenID and Profile are always granted. Click **Save**. ![G2 New OAuth App form with the redirect URL highlighted](/assets/g2-2.19935f1850cd63afc85b277f6a6a8ec29a7f217e572abdb967bff8db08a2b4fc.1ce25488.png) #### Step 3: Copy the Client ID and Client Secret Open the app from the OAuth Apps list and click **Details**. G2 displays the **Client ID** and **Secret**. Copy both values. Keep your Client Secret safe Treat the Client Secret like a password. Never expose it in client-side code or commit it to version control. ![G2 OAuth app details showing the Client ID and Secret](/assets/g2-3.1223dab8ac3bb338f86c07adafd34d77cfbe26e2ad85376575b04e1db451534c.1ce25488.png) ### Configure the Frontegg portal Once you have your **Client ID** and **Client Secret**, configure the integration in the Frontegg portal: 1. Open the **Frontegg portal** and navigate to [ENVIRONMENT] → Integrations → G2. 2. Enter the **Client ID** and **Client Secret**. 3. Select the required **scopes**: | Scope | Description | | --- | --- | | `openid` | Authenticate your G2 account | | `profile` | Read your G2 user profile | | `data_subscriptions.read` | Read G2 buyer-intent and data-subscription data | | `data_subscriptions.read_write` | Manage G2 data subscriptions | 1. Click **Save**. Paid data subscriptions The `data_subscriptions` scopes cover G2's paid buyer-intent and data-subscription APIs. Select them only if your G2 plan includes data subscriptions; the browse, review, and research endpoints work with `openid` and `profile` alone. Keep your credentials secure Never share or commit your Client Secret to version control. ### Additional resources - [G2 Developer Portal documentation](https://documentation.g2.com/docs/developer-portal) - [G2 API reference](https://data.g2.com/api/v2/docs) - [How to get your Redirect URL](/agen-for-work/connectors/redirect-url)