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
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
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.
Sign in to Optimizely and go to Account Settings → Registered Apps. Click Register New Application.
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.
Optimizely displays the Client ID and Client Secret for the application. Copy both values.
Keep your Client Secret safe
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.
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 integration in the Frontegg portal using the method you chose:
- Open the Frontegg portal and navigate to [ENVIRONMENT] → Integrations → Optimizely.
- For OAuth, enter the Client ID and Client Secret. For a Personal Access Token, enter the token in the Personal Access Token field instead.
- Click Save.
Optimizely uses a single OAuth scope:
| Scope | Description |
|---|---|
all | Full access; the issued token inherits the permissions of the authorizing user's role |
Keep your credentials secure
Keep your credentials secure
Never share or commit your Client Secret or Personal Access Token to version control.