---
title: "Configure Okta"
description: "Set up an Okta native app for OIDC authentication to Identity Manager, including redirect URLs, client credentials, application settings, and appsettings.json."
sidebar_position: 70
---

# Configure Okta

This guide shows how to configure the OIDC to set up the authentication to Identity Manager.

## Create the Application

On the Okta dashboard:

![Add Application](/images/identitymanager/okta_addapplication.webp)

**Step 1 –** Select the **Applications** section and click the **Add Application** button.

![Create New App](/images/identitymanager/okta_createnewapp.webp)

**Step 2 –** Then click the **Create New App** button.

![Create Native App](/images/identitymanager/okta_createnativeapp.webp)

**Step 3 –** Select the platform **Native app**. The only sign-on method is the OpenID Connect. Click **Create**.

**Step 4 –** In **General Settings**, name your Application. You can also add a logo.

**Step 5 –** In the **Configure OpenID Connect** section, enter the connection redirection URL in the part: **Login redirect URLs**. To find out this URL, just take the URL of the Identity Manager application and add `/signin-oidc`. The Identity Manager disconnection redirection URL is also necessary. To construct it, take Identity Manager's URL again and, at the end, add `/signout-callback-oidc`.

:::note
 The **Logout redirect URLs** section is marked as optional but it is mandatory for Identity Manager.
:::
![Save Application](/images/identitymanager/okta_saveapplication.webp)

## Configure the Client Credentials

The client secret in Identity Manager is required for the OIDC connection. You must therefore configure this OIDC connection option in the application. In the Application Dashboard, click **Edit** in the **Client Credentials** section. Select the option **Use Client Authentication** and save the changes.

![Client Credentials](/images/identitymanager/okta_clientcredentials.webp)

## Configure the Application Settings

In the **Application** section, check the box **Implicit (Hybrid)** so that the connection with Identity Manager can operate correctly. **Allow ID Token with implicit grant type** is optional.

![Application Section](/images/identitymanager/okta_applicationsection.webp)

## Configure the appsettings.json

To successfully configure the OpenID protocol, you can refer to the dedicated section in the detailed guide. See the [ End-User Authentication](./server-configuration/end-users-authentication.md) for additional information.

Below is an illustrative example of how to set up your `appsettings.json` file.

Code attributes enclosed with `<>` need to be replaced with a custom value before entering the script in the command line.

```
appsettings.json
{
  ...
  "OpenID": {
    "Enabled": true,
    "Okta": {
      "AuthenticationScheme": "Okta Authentication",
      "Authority": "https://your-domain.okta.com/oauth2/default",
      "ClientId": "Your Client ID",
      "ClientSecret": "Your Client Secret",
      "DisplayName": "Okta Display Name",
      "NameClaimType": "https://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn",
      "SaveToken": true
    }
  }
}
```

