Skip to content
Last updated

Optimizely integration

Optimizely is a digital experience and experimentation platform for A/B testing and feature flagging. Integrating Optimizely with Frontegg lets your application manage experiments, projects, audiences, and feature flags on behalf of your users — all through Frontegg's integration layer, across both the v2 management API and the Feature Experimentation Flags API. You can authenticate with either OAuth 2.0 (recommended when connecting on behalf of multiple users) or a Personal Access Token.


Prerequisites

  • An Optimizely account
  • For OAuth: access to Account Settings → Registered Apps to register an application
  • For a Personal Access Token: access to Profile → API Access

Connect to Optimizely with OAuth

You register an OAuth 2.0 application in Optimizely. The app provides the Client ID and Client Secret and defines the Redirect URI that Optimizely returns users to after they authorize access.

Step 1: Open Registered Apps

Sign in to Optimizely and go to Account Settings → Registered Apps. Click Register New Application.

Step 2: Fill in the application details

Complete the registration form:

  • Application Name — A descriptive name, for example Frontegg Integration.
  • Redirect URI — Your Frontegg Redirect URL: https://YOUR_MCP_GATEWAY_URL/integration-callback
  • Client Type — Select Confidential (the client secret is stored securely on Frontegg's server).

Save the application.

Step 3: Copy the Client ID and Client Secret

Optimizely displays the Client ID and Client Secret for the application. Copy both values.

Keep your Client Secret safe

The Client Secret grants access to your account through the API. Treat it like a password and never expose it in client-side code or commit it to version control.

Use a Personal Access Token instead

If you are connecting a single account rather than authorizing multiple users, you can use a Personal Access Token instead of an OAuth app:

  • In Optimizely, go to Profile → API Access and select Generate New Token.
  • Enter a name for the token and click Create.
  • Copy the token immediately — for security, it is no longer visible once you navigate away from the API Access page.

Configure the Frontegg portal

Configure the integration in the Frontegg portal using the method you chose:

  1. Open the Frontegg portal and navigate to [ENVIRONMENT] → Integrations → Optimizely.
  2. For OAuth, enter the Client ID and Client Secret. For a Personal Access Token, enter the token in the Personal Access Token field instead.
  3. Click Save.

Optimizely uses a single OAuth scope:

ScopeDescription
allFull access; the issued token inherits the permissions of the authorizing user's role

Keep your credentials secure

Never share or commit your Client Secret or Personal Access Token to version control.

Additional resources