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

# Google OIDC

> Learn how to configure Fiddler with Google 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 Google account, without needing a separate Fiddler password. Users are automatically provisioned on their first successful login — no manual invitations required.

<Info>
  Google OIDC does not support group synchronization — Google does not include group membership in its OIDC tokens. Users are provisioned individually; assign them to Fiddler teams and roles manually.
</Info>

## Prerequisites

Before starting, ensure you have:

* **Google Cloud Access**: Permissions to create and configure OAuth 2.0 credentials in a Google Cloud project.
* **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 Google

<Info>
  Fiddler requires two redirect URIs on the Google OAuth client. You will add both when creating the client 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="Configure the OAuth Consent Screen">
    1. In the [Google Cloud Console](https://console.cloud.google.com/), select your project and go to *APIs & Services → OAuth consent screen*.
    2. In *App information*, enter the *App name* and *User support email*.
    3. In *Audience*, select *Internal* or *External* depending on your organization's setup and access requirements.
    4. In *Contact Information*, add the required email addresses.
    5. Agree to the *Google API Services: User Data Policy*, then select *Create*.

    <Info>
      If you selected *External*, the app starts in testing mode — only accounts added under *Test users* can sign in until you publish the app (set it to *In production*). See [Manage app audience](https://support.google.com/cloud/answer/15549945) for details.
    </Info>
  </Step>

  <Step title="Create an OAuth 2.0 Client">
    1. Go to *APIs & Services → Credentials*, then select *Create Credentials → OAuth client ID*.

           <img src="https://mintcdn.com/fiddlerai/rI_REZccoRLqD6i6/images/google-oidc-oauth-client.png?fit=max&auto=format&n=rI_REZccoRLqD6i6&q=85&s=b78960076c245b0d0b8c16c9390e3212" alt="Google Cloud create OAuth client" width="3024" height="1654" data-path="images/google-oidc-oauth-client.png" />
    2. Select *Web application* for the *Application type* and enter a name, e.g. `Fiddler IdP Example`.
    3. Under *Authorized redirect URIs*, add both redirect URIs (replace the host with your deployment):

       * `https://authn-idpexample.dev.fiddler.ai/ui/login/login/externalidp/callback`
       * `https://authn-idpexample.dev.fiddler.ai/idps/callback`

           <img src="https://mintcdn.com/fiddlerai/rI_REZccoRLqD6i6/images/google-oidc-oauth-client-2.png?fit=max&auto=format&n=rI_REZccoRLqD6i6&q=85&s=e1eb783dd134b6e180660b1a8f36e266" alt="Google Cloud OAuth client name, type, and redirect URIs" width="3024" height="1654" data-path="images/google-oidc-oauth-client-2.png" />
    4. Select *Create*.
    5. Copy the *Client ID* and *Client Secret* — you will need them when configuring Fiddler.

           <img src="https://mintcdn.com/fiddlerai/rI_REZccoRLqD6i6/images/google-oidc-oauth-client-copy.png?fit=max&auto=format&n=rI_REZccoRLqD6i6&q=85&s=40e2ad11fe3dc74ee06d323fbf84b016" alt="Google Cloud OAuth client credentials" width="3024" height="1652" data-path="images/google-oidc-oauth-client-copy.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 Google Provider">
    1. Select the *Google* option in the *Add provider* section, which brings up the Google Provider form.
    2. Note the callback URL shown in the form — it corresponds to the redirect URIs you registered in Google earlier, so no further changes are needed in Google.

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

  <Step title="Configure the Google Provider in Fiddler">
    In the Google Provider form, paste the *Client ID* and *Client Secret* copied from Google earlier.

    <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-google-oidc-client-credentials.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=5fbf12567f6db2c392c9083a664b8f92" alt="Fiddler AuthN console Google provider client credentials" width="3024" height="1650" data-path="images/authn-console-google-oidc-client-credentials.png" />
  </Step>

  <Step title="Configure Additional Parameters">
    1. Expand the *optional* section.
    2. Ensure the *Scopes List* includes `openid`, `profile`, and `email`.
    3. Ensure the *Automatic create* and *Automatic update* checkboxes are selected.
    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-google-oidc-create-update-username.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=23840dd92e38b70756285292e1352737" alt="Fiddler AuthN console automatic create/update and check existing username settings" width="3024" height="1658" data-path="images/authn-console-google-oidc-create-update-username.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-google-oidc-identity-providers.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=699e17d8a4d08933ff3fe421b3aa25ba" alt="Fiddler AuthN console with newly created Google OIDC IdP" width="3022" height="1652" data-path="images/authn-console-google-oidc-identity-providers.png" />
  </Step>

  <Step title="Activate the Google 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-google-oidc-activate.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=27dca74aaa9ff5c8422c3d2df6b6d7e1" alt="Fiddler AuthN console activate new Google OIDC IdP" width="3024" height="1652" data-path="images/authn-console-google-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-google-oidc-action-script.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=ff42189c3042f2e962f0bbb81029f062" alt="Fiddler AuthN console new custom Action script" width="3024" height="1654" data-path="images/authn-console-google-oidc-action-script.png" />

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

    **File:** `Google OIDC Action Script`

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

        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:GOOGLE:OIDC');
        api.v1.user.appendMetadata('fiddler_groups', []);
    }
    ```
  </Step>

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

    <img src="https://mintcdn.com/fiddlerai/LFezQzAOZ4GbBOtH/images/authn-console-google-oidc-action-trigger.png?fit=max&auto=format&n=LFezQzAOZ4GbBOtH&q=85&s=614cf9aa59a278abb2cc2165effb6651" alt="Fiddler AuthN console new Action trigger creation" width="3024" height="1650" data-path="images/authn-console-google-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 *setAttributesOnGoogleOIDCAuth* 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:GOOGLE:OIDC`.

           <img src="https://mintcdn.com/fiddlerai/0YAzrIgYU8gLFpZN/images/authn-console-organization-metadata-google-oidc.png?fit=max&auto=format&n=0YAzrIgYU8gLFpZN&q=85&s=4a128bb6723c2a077894a6c744ca4103" alt="Fiddler AuthN console organization metadata with Google OIDC authentication type" width="3024" height="1652" data-path="images/authn-console-organization-metadata-google-oidc.png" />
    3. Select the *Save* button next to the new entry.
  </Step>

  <Step title="Validate the Integration">
    <Info>
      Before validating, make sure your Google account can sign in: for an *Internal* consent screen it must belong to your Google Workspace organization; for an *External* app still in testing it must be added as a *Test user*.
    </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 the Google SSO login button.

           <img src="https://mintcdn.com/fiddlerai/rI_REZccoRLqD6i6/images/fiddler-google-oidc-login.png?fit=max&auto=format&n=rI_REZccoRLqD6i6&q=85&s=7eb112e4501b9f598db604db9c8163b8" 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-google-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, verify the OAuth client configuration in the Google Cloud Console (redirect URIs, consent screen status, client credentials). 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 Google: first name, last name, display name, and email address.
* **No Group Synchronization**: Google OIDC does not provide group membership, so group sync to Fiddler teams is not available. Assign users to teams and roles manually.
* **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 Google SSO.
* **Assign Roles**: Manually assign users to the appropriate Fiddler teams and roles after their first login.
* **Monitor Usage**: Review authentication logs and user access patterns.
