> ## 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

<Info>
  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`).
</Info>

<Steps>
  <Step title="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*.

           <img src="https://mintcdn.com/fiddlerai/i69CIvSBIFc1KMda/images/okta-oidc-app-integration.png?fit=max&auto=format&n=i69CIvSBIFc1KMda&q=85&s=a22bd7f46e18a0573e2488e978cbe48d" alt="Okta admin console applications list" width="3024" height="1658" data-path="images/okta-oidc-app-integration.png" />
    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`.

              <img src="https://mintcdn.com/fiddlerai/i69CIvSBIFc1KMda/images/okta-oidc-redirect-urls.png?fit=max&auto=format&n=i69CIvSBIFc1KMda&q=85&s=a5d45440a46e2341d06ee55440901c2e" alt="Okta admin console application page with redirect and sign-out URIs" width="3024" height="1654" data-path="images/okta-oidc-redirect-urls.png" />
    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.

              <img src="https://mintcdn.com/fiddlerai/i69CIvSBIFc1KMda/images/okta-oidc-client-credentials.png?fit=max&auto=format&n=i69CIvSBIFc1KMda&q=85&s=0b23c556129dc51276faf3922b5ea0b9" alt="Okta admin console application page with client id and secret" width="3024" height="1656" data-path="images/okta-oidc-client-credentials.png" />
       2. On the *Sign On* tab, copy the *Issuer* URL.

              <img src="https://mintcdn.com/fiddlerai/i69CIvSBIFc1KMda/images/okta-oidc-issuer.png?fit=max&auto=format&n=i69CIvSBIFc1KMda&q=85&s=b66345480098277d56776dffeb28bd8a" alt="Okta admin console application page with the Issuer URL" width="3022" height="1653" data-path="images/okta-oidc-issuer.png" />
  </Step>
</Steps>

## Configuring Fiddler

<Steps>
  <Step title="Fiddler AuthN Console Sign-in">
    <Info>
      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`.
    </Info>

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

    <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-login-page.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=a85c93e86c371a7c5fee59bbb16bb73d" alt="Fiddler AuthN console sign-in page" width="3024" height="1656" data-path="images/authn-console-login-page.png" />
  </Step>

  <Step title="Select Your Organization">
    Ensure your organization is selected in the dropdown. You may see the *fiddler* organization, but this is reserved for system use and should not be edited. Here we are using the *idpexample* organization.

    <img src="https://mintcdn.com/fiddlerai/0YAzrIgYU8gLFpZN/images/authn-console-organization-settings.png?fit=max&auto=format&n=0YAzrIgYU8gLFpZN&q=85&s=c738d283925bf5ae30acfc0e033161b2" alt="Fiddler AuthN console home page" width="3024" height="1652" data-path="images/authn-console-organization-settings.png" />
  </Step>

  <Step title="Navigate to Identity Providers in Settings">
    Select *Settings* tab from the top menu and then select *Identity Providers* from the left navigation menu.

    <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-organization-identity-providers.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=7442828d5a4956079023c4a781a10daf" alt="Fiddler AuthN console add provider page" width="3024" height="1652" data-path="images/authn-console-organization-identity-providers.png" />
  </Step>

  <Step title="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.

           <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-okta-oidc-redirect-urls.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=edaaf1e66a1d14358c30f7fee0ea179c" alt="Fiddler AuthN console add new OIDC provider form with callback URL" width="3024" height="1654" data-path="images/authn-console-okta-oidc-redirect-urls.png" />
  </Step>

  <Step title="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.

           <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-okta-oidc-provider-info-1.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=7ae4c4a372de35ae534912408c9cff20" alt="Fiddler AuthN console OIDC provider name" width="3024" height="1654" data-path="images/authn-console-okta-oidc-provider-info-1.png" />
  </Step>

  <Step title="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.

           <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-okta-oidc-provider-info-2.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=12d778fb6d38979748bf7ebbcfa167bc" alt="Fiddler AuthN console automatic create and update settings" width="3024" height="1654" data-path="images/authn-console-okta-oidc-provider-info-2.png" />
    4. Set the *Determines whether an identity will be prompted to be linked to an existing account* dropdown to *Check for existing Username*.

           <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-okta-oidc-provider-info-3.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=9cbf663607153d376c570bd93ec03cc9" alt="Fiddler AuthN console check for existing username setting" width="3024" height="1654" data-path="images/authn-console-okta-oidc-provider-info-3.png" />
  </Step>

  <Step title="Save the Configuration Changes">
    Select the *Create* button and then select the *Save* button. You will be returned to the Organization Settings page.

    <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-organization-identity-providers-okta-oidc.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=fc4c6352c8e3ad7527b5455545097ac8" alt="Fiddler AuthN console with newly created Okta OIDC IdP" width="3024" height="1654" data-path="images/authn-console-organization-identity-providers-okta-oidc.png" />
  </Step>

  <Step title="Activate the Okta OIDC IdP">
    1. Select your IdP from the list and select the *Activate* button on the identity provider page.

           <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-okta-oidc-activate.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=38b196db3533a6ae2b291e856ee5461f" alt="Fiddler AuthN console activate new Okta OIDC IdP" width="3024" height="1654" data-path="images/authn-console-okta-oidc-activate.png" />
    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.

           <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-login-behaviour-security.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=3bb781d4b4c483dc8676f0f6d55a6f62" alt="Fiddler AuthN console allow external login behavior" width="3024" height="1652" data-path="images/authn-console-login-behaviour-security.png" />
    3. Select the *Save* button.

           <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-login-behaviour-security-external.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=a9207dddebc85b5297d3352e953db453" alt="Fiddler AuthN console external login allowed" width="3024" height="1654" data-path="images/authn-console-login-behaviour-security-external.png" />
  </Step>

  <Step title="Create a Custom Action">
    Select the *Actions* tab from the top menu.

    <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-okta-oidc-action-script.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=bf60f717d8e68abaf4aa85d228801924" alt="Fiddler AuthN console new custom Action script" width="3024" height="1652" data-path="images/authn-console-okta-oidc-action-script.png" />

    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);
    }
    ```
  </Step>

  <Step title="Configure the Action Trigger">
    Scroll down to the *Flows* section.

    <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-okta-oidc-action-trigger.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=8053ba9a2f951b758509369330ed9cec" alt="Fiddler AuthN console new Action trigger creation" width="3024" height="1650" data-path="images/authn-console-okta-oidc-action-trigger.png" />

    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.
  </Step>

  <Step title="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*.

           <img src="https://mintcdn.com/fiddlerai/0YAzrIgYU8gLFpZN/images/authn-console-organization-metadata.png?fit=max&auto=format&n=0YAzrIgYU8gLFpZN&q=85&s=8e07886ca3bf84dcc9074e9c354e768e" alt="Fiddler AuthN console organization metadata section" width="3024" height="1652" data-path="images/authn-console-organization-metadata.png" />
    2. Select the *Add* button, then enter the key `fiddler_sso_authentication_type` with the value `SSO:OKTA:OIDC`.

           <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-organization-metadata-edit.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=022ed0aea80bb025e5294b3cfd9011ef" alt="Fiddler AuthN console organization metadata edit" width="3024" height="1656" data-path="images/authn-console-organization-metadata-edit.png" />
    3. Select the *Save* button next to the new entry.
  </Step>

  <Step title="Validate the Integration">
    <Info>
      Before validating, ensure your Okta user account is assigned to the new Okta application you created.
    </Info>

    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*).

           <img src="https://mintcdn.com/fiddlerai/rI_REZccoRLqD6i6/images/fiddler-okta-oidc-login.png?fit=max&auto=format&n=rI_REZccoRLqD6i6&q=85&s=86212ed3b5d99002fb2066579d6174a0" alt="Fiddler application homepage displaying the new SSO login method in addition to the email sign-in form" width="3024" height="1656" data-path="images/fiddler-okta-oidc-login.png" />
    3. Select the button and confirm that the Fiddler application loads.

           <img src="https://mintcdn.com/fiddlerai/rI_REZccoRLqD6i6/images/fiddler-successful-login.png?fit=max&auto=format&n=rI_REZccoRLqD6i6&q=85&s=577af651008c8412526f47b9e1115df2" alt="Fiddler application landing page" width="3024" height="1658" data-path="images/fiddler-successful-login.png" />

    <Info>
      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.
    </Info>
  </Step>
</Steps>

## 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](/reference/access-control/sso-authentication-guide). 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](/reference/access-control/mapping-ad-groups-to-fiddler-teams).
* **Test Group Sync**: Verify automatic group synchronization is working as expected.
* **Monitor Usage**: Review authentication logs and user access patterns.
