Skip to content
Last updated

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

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 and open the OAuth Apps tab. Click New OAuth App.

G2 Developer Portal OAuth Apps page with the New OAuth App button

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

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

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:
ScopeDescription
openidAuthenticate your G2 account
profileRead your G2 user profile
data_subscriptions.readRead G2 buyer-intent and data-subscription data
data_subscriptions.read_writeManage 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