> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiddler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Okta OIDC

> Learn how to configure Fiddler with Okta for Single Sign-On (SSO) using the OpenID Connect (OIDC) protocol.

## Overview

This integration allows your users to sign in to Fiddler using their existing Okta account, without needing a separate Fiddler password. Users are automatically provisioned on their first successful login — no manual invitations required.

## Prerequisites

Before starting, ensure you have:

* **Okta Administrator Access**: Permissions to create and configure applications in your Okta organization.
* **Fiddler AuthN Administrator Access**: Org Owner role in Fiddler's AuthN management console.
* **Deployment Information**: The hostname of your Fiddler deployment, e.g. `idpexample.dev.fiddler.ai`.

## Configuring Okta

> [!NOTE]
>
> Fiddler requires two redirect URIs on the Okta application. You will add both when creating the Okta application below:
>
> * `https://authn-{base_url}/ui/login/login/externalidp/callback`
> * `https://authn-{base_url}/idps/callback`
>
> Replace `{base_url}` with your Fiddler deployment host (e.g. `idpexample.dev.fiddler.ai`).

**1. Create New Okta Application Integration**

1. In the Okta admin console, navigate to *Applications* and select the *Create App Integration* button. Select *OIDC - OpenID Connect* for the *Sign-in method* and *Web Application* for the *Application type*, then select *Next*.

   ![Okta admin console applications list](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/okta-oidc-app-integration.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=8ceb8b4f1d6fc6d889d4a9a0ff3101d5)
2. Assign a name for your application integration in the *App integration name* text box, then configure the redirect URIs:
   1. Enter both redirect URIs into the *Sign-in redirect URIs* field using the *+ Add URI* button:
      * `https://authn-idpexample.dev.fiddler.ai/ui/login/login/externalidp/callback`
      * `https://authn-idpexample.dev.fiddler.ai/idps/callback`
   2. Enter your Fiddler deployment URL (without the `authn-` prefix) into the *Sign-out redirect URIs* text box, e.g. `https://idpexample.dev.fiddler.ai`.

      ![Okta admin console application page with redirect and sign-out URIs](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/okta-oidc-redirect-urls.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=a955c5a013b2a7e1b8d37d9e41b174c9)
3. Select the *Save* button to create the application.
4. Copy the following values — you will need them when configuring Fiddler:
   1. On the *General* tab, copy the *Client ID* and *Client Secret* values.

      ![Okta admin console application page with client id and secret](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/okta-oidc-client-credentials.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=75bd2499c91053b247884907a7e424e0)
   2. On the *Sign On* tab, copy the *Issuer* URL.

      ![Okta admin console application page with the Issuer URL](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/okta-oidc-issuer.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=3b9f20362ab77ee858051edd245fd704)

## Configuring Fiddler

**1. Fiddler AuthN Console Sign-in**

> [!NOTE]
>
> The URL to the Fiddler AuthN management console is your Fiddler instance base URL prepended with `authn-`. For example, if your Fiddler base URL is `https://idpexample.dev.fiddler.ai` then you will access the AuthN management console at `https://authn-idpexample.dev.fiddler.ai`.

Sign in using the AuthN console Org Owner user account credentials provided by your Fiddler representative.

![Fiddler AuthN console sign-in page](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-login-page.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=85948459364c5654e767b832f93afee0)

**2. Select Your Organization**

Ensure your organization is selected in the dropdown. Here we are using the *idpexample* organization.
You may see the *fiddler* organization, but this is reserved for system use: set up your identity provider in your own organization.
On Fiddler-managed deployments, don't edit the *fiddler* organization.
On self-hosted deployments, operators can change its sign-in settings; see [Self-Hosted Deployments](https://docs.fiddler.ai/reference/access-control/sign-in-security.md#self-hosted-deployments).

![Fiddler AuthN console home page](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-organization-settings.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=bafe76cd5aa8dc2813c948abfb4be8a9)

**3. Navigate to Identity Providers in Settings**

Select *Settings* tab from the top menu and then select *Identity Providers* from the left navigation menu.

![Fiddler AuthN console add provider page](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-organization-identity-providers.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=7e9ae96e1a5eab23a9d43037e1bebed1)

**4. Add a New OIDC Provider**

1. Select the *Generic OIDC* option in the *Add provider* section, which brings up the OIDC Provider form.
2. Note the callback URL shown in the form — it corresponds to the redirect URIs you registered in Okta earlier, so no further changes are needed in Okta.

   ![Fiddler AuthN console add new OIDC provider form with callback URL](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-okta-oidc-redirect-urls.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=d6bb7eb26fb23bde3fb4de7e422938f4)

**5. Configure the Identity Provider in Fiddler**

1. In the OIDC Provider form, enter the following values:

   1. Enter a name in the *Name* text box. This name is displayed on the SSO login button on the Fiddler sign-in page, so choose one your users will recognize.
   2. In the *Issuer* text box, paste the Issuer URL copied from the Okta admin console.
   3. In the *Client ID* and *Client Secret* text boxes, paste those values copied from the Okta admin console.

   ![Fiddler AuthN console OIDC provider name](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-okta-oidc-provider-info-1.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=289e482fd56f31aef36d212e1151fa7b)

**6. Configure Additional Parameters**

1. Expand the *optional* section.
2. Add the text `groups` to the *Scopes List* text box and ensure it is listed along with `openid`, `profile`, and `email`.
3. Ensure the *Automatic create* and *Automatic update* checkboxes are selected.

   ![Fiddler AuthN console automatic create and update settings](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-okta-oidc-provider-info-2.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=4b0a36849088ec4c6ea47b206e656996)
4. Set the *Determines whether an identity will be prompted to be linked to an existing account* dropdown to *Check for existing Username*.

   ![Fiddler AuthN console check for existing username setting](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-okta-oidc-provider-info-3.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=531e8c3a93d1127e656dbf2d63141108)

**7. Save the Configuration Changes**

Select the *Create* button and then select the *Save* button. You will be returned to the Organization Settings page.

![Fiddler AuthN console with newly created Okta OIDC IdP](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-organization-identity-providers-okta-oidc.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=0362dc6eefc7c9f6af523f577a655224)

**8. Activate the Okta OIDC IdP**

1. Select your IdP from the list and select the *Activate* button on the identity provider page.

   ![Fiddler AuthN console activate new Okta OIDC IdP](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-okta-oidc-activate.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=aa48011c6ba27301f3170e00f9e2864f)
2. Close the settings and then select *Login Behavior and Security* from the left nav menu and ensure the *External login allowed* checkbox is selected.

   ![Fiddler AuthN console allow external login behavior](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-login-behavior-security.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=85e73569f02749834d7168251d7caf57)
3. Select the *Save* button.

   ![Fiddler AuthN console external login allowed](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-login-behavior-security-external.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=aefddffcd7ed50135323c3da66cecb78)

**9. Create a Custom Action**

Select the *Actions* tab from the top menu.

![Fiddler AuthN console new custom Action script](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-okta-oidc-action-script.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=447c57612ffd6d5b608234764dd9ffd0)

1. Select the *New* button in the *Scripts* section to create a new action script.
2. Copy the *Okta OIDC Action Script* below and paste it into the script text area.
3. Enter `setAttributesOnOktaOIDCAuth` in the *Name* text box.
4. Select the *Add* button.

**File:** `Okta OIDC Action Script`

```javascript theme={null}
function setAttributesOnOktaOIDCAuth(ctx, api) {
    let firstName = ctx.v1.providerInfo.getFirstName();
    let lastName = ctx.v1.providerInfo.getLastName();
    let email = ctx.v1.providerInfo.getEmail();
    let groups = ctx.getClaim('groups');

    let nameParts = [firstName, lastName];
    let filteredParts = nameParts.filter(part => part);
    let displayName = filteredParts.join(' ');

    if (firstName != undefined) {
      api.setFirstName(firstName);
    }
    if (lastName != undefined) {
      api.setLastName(lastName);
    }
    if (email != undefined) {
      email = email.toLowerCase();
      api.setEmail(email);
      api.setEmailVerified(true);
      api.setPreferredUsername(email);
    }

    if (displayName) {
      api.setDisplayName(displayName);
    }

    api.v1.user.appendMetadata('fiddler_authentication_type', 'SSO:OKTA:OIDC');
    if (groups === null || groups === undefined){
      groups = []
    }
    api.v1.user.appendMetadata('fiddler_groups', groups);
}
```

**10. Configure the Action Trigger**

Scroll down to the *Flows* section.

![Fiddler AuthN console new Action trigger creation](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-okta-oidc-action-trigger.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=14e75e88e0e5c39ad27399d7f9056995)

1. Select the *External Authentication* option for the *Flow Type* dropdown.
2. Select the *+ Add trigger* button.
3. Select the *Post Authentication* option for the *Trigger Type* dropdown.
4. Select the *setAttributesOnOktaOIDCAuth* option for the *Actions* dropdown.
5. Select the *Save* button.

**11. Set the Organization SSO Authentication Type**

Add an organization metadata key so Fiddler can correctly identify and process this SSO connection. Set this once during setup.

1. Go to the *Metadata* section and select *Edit*.

   ![Fiddler AuthN console organization metadata section](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-organization-metadata.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=050e4dcd7a526721bdc64a681f52d080)
2. Select the *Add* button, then enter the key `fiddler_sso_authentication_type` with the value `SSO:OKTA:OIDC`.

   ![Fiddler AuthN console organization metadata edit](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/authn-console-organization-metadata-edit.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=b095fa545eb273bbe078a9cec43c8a4a)
3. Select the *Save* button next to the new entry.

**12. Validate the Integration**

> [!NOTE]
>
> Before validating, ensure your Okta user account is assigned to the new Okta application you created.

1. Open your Fiddler URL (e.g. `https://idpexample.dev.fiddler.ai`).
2. Ensure you see the Fiddler sign-in page and that it displays an SSO login button labeled with the name you configured (e.g. *Okta OIDC*).

   ![Fiddler application homepage displaying the new SSO login method in addition to the email sign-in form](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/fiddler-okta-oidc-login.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=f91d12a774c044d8452d4b5daaeaafc2)
3. Select the button and confirm that the Fiddler application loads.

   ![Fiddler application landing page](https://mintcdn.com/fiddlerai/G09wC1jSL7g36xKd/images/fiddler-successful-login.png?fit=max\&auto=format\&n=G09wC1jSL7g36xKd\&q=85\&s=c393da1015e941d75be8974435588bbe)

> [!NOTE]
>
> The first user to sign in to the Fiddler application is automatically assigned the Fiddler Org Admin role; subsequent members are Org Members by default.

## Rotating the Client Secret

Okta client secrets do not expire. You may still need to rotate a secret — for example, if it is compromised or your security policy requires periodic rotation. Okta keeps the old secret valid until you deactivate it, so create the new secret alongside it and update Fiddler before deactivating the old one — sign-in is disrupted only if the old secret becomes invalid before Fiddler is updated.

**Step 1: Create a new client secret in Okta**

1. In the Okta admin console, navigate to *Applications* and open your Fiddler application.
2. On the *General* tab, go to the *Client Credentials* section and find *Client secrets*.
3. Select *Generate new secret* and copy the value.

**Step 2: Update the secret in Fiddler**

Update the *Client Secret* field for this provider in the Fiddler AuthN console and save. Follow the shared steps in [Rotating an OIDC Client Secret](https://docs.fiddler.ai/reference/access-control/sso-authentication-guide.md#rotating-an-oidc-client-secret).

## Getting Help

If sign-in fails, check the **Okta System Log** (*Reports → System Log*) for the failed attempt and its reason. For Fiddler-side issues, see the [SSO Authentication Guide](https://docs.fiddler.ai/reference/access-control/sso-authentication-guide.md). If the issue persists, contact your Fiddler representative with the specific error message.

## Important Notes

* **Data Storage**: Fiddler stores the following profile attributes from Okta: first name, last name, display name, email address, and group memberships (used to map users to Fiddler teams).
* **API Access**: For programmatic API access, users create an API key from the *Credentials* tab in Fiddler's *Settings* page.
* **Single Authentication Method**: Users can only authenticate via either SSO or email authentication, not both.

## Next Steps

After successful integration:

* **Train Users**: Provide guidance on accessing Fiddler through Okta SSO.
* **Configure Teams**: Map your identity provider groups to Fiddler teams — see [Mapping AD Groups to Fiddler Teams](https://docs.fiddler.ai/reference/access-control/mapping-ad-groups-to-fiddler-teams.md).
* **Test Group Sync**: Verify automatic group synchronization is working as expected.
* **Monitor Usage**: Review authentication logs and user access patterns.
