# How to Configure Okta SSO in Teleport (OIDC Guide)

Last verified: December 2026 (Teleport 19.0.x)

Configure Okta as an OpenID Connect (OIDC) identity provider for a self-hosted Teleport cluster. Map Okta groups to Teleport roles, apply the Teleport `kind: oidc` connector (`version: v3`), and verify login with `tsh`.

Okta SSO requires Teleport Enterprise. If you are running Community Edition, this guide also explains the available paths to corporate SSO.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

### Teleport cluster[​](#teleport-cluster "Direct link to Teleport cluster")

Verify the edition your cluster runs from your workstation:

******Terminal

```bash
tctl status
Cluster      teleport.example.com
Version      19.0.2
```

Then check the server binary on an Auth Service host:

******Terminal

```bash
teleport version
Teleport Enterprise v19.0.2 git:v19.0.2 go1.25.5
```

The output must contain `Teleport Enterprise`. If it reads only `Teleport`, the cluster is Community Edition and cannot create this connector.

Okta OIDC requires Teleport Enterprise

Teleport Community Edition supports GitHub SSO and local users. It rejects this connector with `ERROR: OIDC is only available in Teleport Enterprise`. No configuration switch enables `kind: oidc`. If your binary reads `Teleport` rather than `Teleport Enterprise`, see [Okta SSO for Teleport Community Edition](#okta-sso-for-teleport-community-edition) for the available options.

### Okta administrator[​](#okta-administrator "Direct link to Okta administrator")

You need an Okta administrator account that can create OIDC applications, manage groups, and configure custom authorization servers. The built-in **Super Admin** role covers all required permissions.

### Okta API Access Management[​](#okta-api-access-management "Direct link to Okta API Access Management")

Custom authorization servers require Okta's **API Access Management** feature. Okta Integrator Free Plan organizations provide a preconfigured custom authorization server for testing. Production organizations need a plan with the API Access Management add-on.

### Okta groups[​](#okta-groups "Direct link to Okta groups")

Have at least one Okta group ready to map to Teleport roles. Okta emits group names as strings (for example, `teleport-admins`), not email addresses or UUIDs. Group name matching in Teleport is exact and case-sensitive. Copy each group name verbatim from **Directory → Groups** in Okta.

Use a direct member of a mapped group for the first sign-in test.

### Network access from Auth Service hosts[​](#network-access-from-auth-service-hosts "Direct link to Network access from Auth Service hosts")

The Teleport Auth Service uses your Okta domain to discover its OIDC configuration, verify token signatures, and exchange authorization codes for tokens. Allow outbound HTTPS (TCP port 443) from every Auth Service host to your Okta domain, such as `example.okta.com` or your custom domain.

Run this check from each Auth Service host, replacing `example.okta.com` with your Okta domain.

******Terminal

```bash
curl -sS --max-time 10 -o /dev/null \
    -w "example.okta.com: HTTP %{http_code}\n" \
    "https://example.okta.com/"
```

An HTTP response confirms connectivity. If `curl` reports `HTTP 000`, check DNS, firewall, proxy, or TLS settings before continuing.

## Step 1. Configure Okta with Terraform[​](#step-1-configure-okta-with-terraform "Direct link to Step 1. Configure Okta with Terraform")

If you do not use Terraform, follow [Okta Admin Console setup](#step-1-configure-okta-in-the-okta-admin-console) below instead.

Save [`teleport-okta-sso.tf`](https://almaforge.com/examples/teleport/okta-sso/teleport-okta-sso.tf) in a new private working directory. It creates the OIDC web application, custom authorization server, `groups` scope and claim, access policy and rule, and the `teleport-admins` and `teleport-developers` groups. It assigns both groups to the application. Keep Terraform state, state backups, and exported secrets out of source control.

Export your Okta API credentials, replace `teleport.example.com` with your public Teleport Proxy hostname, and apply:

******Terminal

```bash
umask 077
export OKTA_ORG_NAME="example"
export OKTA_BASE_URL="okta.com"
export OKTA_API_TOKEN="<okta-api-token>"
terraform init
terraform apply -var='proxy_public_addr=teleport.example.com'
terraform output -raw issuer_url
terraform output -raw client_id
terraform output -raw client_secret
```

Continue to [Step 2](#step-2-apply-the-teleport-oidc-connector) to use these values in the Teleport connector.

## Step 1. Configure Okta in the Okta Admin Console[​](#step-1-configure-okta-in-the-okta-admin-console "Direct link to Step 1. Configure Okta in the Okta Admin Console")

Use this section if you do not use Terraform. If you already provisioned Okta with Terraform above, skip to [Step 2](#step-2-apply-the-teleport-oidc-connector).

### Step 1.1. Create the OIDC application[​](#step-11-create-the-oidc-application "Direct link to Step 1.1. Create the OIDC application")

1. Sign in to the **Okta Admin Console**.

2. Open **Applications → Applications** and click **Create App Integration**.

3. Select **OIDC - OpenID Connect** as the Sign-in method and **Web Application** as the Application type, then click **Next**.

4. Set these fields.

   * **App integration name**: `Teleport Access`
   * **Grant type**: Select **Authorization Code**.
   * **Sign-in redirect URIs**: Enter `https://teleport.example.com/v1/webapi/oidc/callback`. Replace `teleport.example.com` with your public Teleport Proxy hostname. Keep `https://`, omit `:443`, and omit the trailing slash.
   * **Sign-out redirect URIs**: Optional. Leave blank or enter `https://teleport.example.com/web`.
   * **Controlled access**: Select **Limit access to selected groups** and pick the Okta groups that should access Teleport rather than allowing everyone.

5. Click **Save**.

6. On the application's **General** tab under **Client Credentials**, copy the **Client ID** and **Client secret**.

Treat the client secret as a password

Anyone with the client secret can impersonate Teleport to Okta's OAuth endpoints. Store it in the same secret manager you use for production credentials. Do not commit it to Git.

### Step 1.2. Create a custom authorization server[​](#step-12-create-a-custom-authorization-server "Direct link to Step 1.2. Create a custom authorization server")

1. In the left sidebar, open **Security → API**.

2. On the **Authorization Servers** tab, click **Add Authorization Server**.

3. Set these fields.

   * **Name**: `teleport`
   * **Audience**: `teleport`
   * **Description**: `Teleport OIDC Authorization Server`

4. Click **Save**. Okta opens the new authorization server with five tabs across the top: **Settings**, **Scopes**, **Claims**, **Access Policies**, and **Token Preview**.

5. On the **Settings** tab, copy the **Issuer URI** (for example, `https://example.okta.com/oauth2/<auth-server-id>`).

### Step 1.3. Add the groups scope and claim[​](#step-13-add-the-groups-scope-and-claim "Direct link to Step 1.3. Add the groups scope and claim")

Scopes and claims are configured on the **custom authorization server** you created in [Step 1.2](#step-12-create-a-custom-authorization-server), not on the OIDC application. If you navigated away, open **Security → API → Authorization Servers** and click your `teleport` authorization server.

1. Click the **Scopes** tab and click **Add Scope**.

2. Set **Name** to `groups`, **Display name** to `Groups`, and **Description** to `Return Okta group memberships`, then click **Create**.

3. Click the **Claims** tab right next to **Scopes** and click **Add Claim**.

4. Set these fields.

   * **Name**: `groups`
   * **Include in token type**: **ID Token** and **Always**
   * **Value type**: **Groups**
   * **Filter**: **Matches regex** with `.*` (or use **Starts with** to limit emitted groups to a prefix such as `teleport-`)
   * **Include in**: **Any scope** (or **The following scopes** → `groups`)

5. Click **Create**. Confirm that `groups` appears in the **Claims** table with **Type** `id` and **Included** `Always`.

### Step 1.4. Add an access policy and rule[​](#step-14-add-an-access-policy-and-rule "Direct link to Step 1.4. Add an access policy and rule")

Still inside your `teleport` custom authorization server (**Security → API → Authorization Servers → `teleport`**), add an access policy and rule. Custom authorization servers do not ship with a default policy, so Okta will not issue tokens until you add one.

1. Click the **Access Policies** tab right next to **Claims** and click **Add Policy**.

2. Set **Name** to `Default`, select **Assign to → The following clients**, and pick the `Teleport Access` application from [Step 1.1](#step-11-create-the-oidc-application). Click **Create Policy**.

3. Inside the new policy, click **Add Rule** and set these fields.

   * **Rule Name**: `Default`
   * **IF Grant type is**: **Authorization Code**
   * **AND User is**: **Any user assigned the app**
   * **AND Scopes requested**: **Any scopes** (or **The following scopes** including `openid`, `profile`, `email`, and `groups`)

4. Click **Create Rule**.

No policy means access\_denied at token exchange

Without an explicit access policy and rule on the custom authorization server, Okta returns `access_denied` at token exchange even though browser sign-in appears to succeed.

## Step 2. Apply the Teleport OIDC connector[​](#step-2-apply-the-teleport-oidc-connector "Direct link to Step 2. Apply the Teleport OIDC connector")

Write the Teleport `kind: oidc` (`version: v3`) connector manifest as `teleport-connector.yaml`:

teleport-connector.yaml

```yaml
kind: oidc

version: v3

metadata:

  name: okta

spec:

  display: Okta

  redirect_url: https://teleport.example.com/v1/webapi/oidc/callback

  issuer_url: https://<okta-domain>/oauth2/<auth-server-id>

  client_id: <okta-client-id>

  client_secret: <client-secret-value>

  prompt: select_account

  scope:

    - openid

    - profile

    - email

    - groups

  claims_to_roles:

    - claim: groups

      value: teleport-admins

      roles:

        - editor

        - access

    - claim: groups

      value: teleport-developers

      roles:

        - access
```

Replace:

* `<okta-domain>` and `<auth-server-id>` with the **Issuer URI** from [Step 1](#step-1-configure-okta-with-terraform) (or [Step 1.2](#step-12-create-a-custom-authorization-server)).
* `<okta-client-id>` and `<client-secret-value>` with the credentials from [Step 1](#step-1-configure-okta-with-terraform) (or [Step 1.1](#step-11-create-the-oidc-application)).
* `redirect_url` with the exact callback URI configured in Step 1.
* `claims_to_roles` with your Okta group names and existing Teleport roles. Matching is exact and case-sensitive.

Apply the connector from your authenticated Teleport admin terminal:

******Terminal

```bash
tctl create -f teleport-connector.yaml
authentication connector "okta" has been created
```

## Step 3. Verify login with tsh[​](#step-3-verify-login-with-tsh "Direct link to Step 3. Verify login with tsh")

Confirm that the connector exists on your Teleport cluster:

******Terminal

```bash
tctl get oidc/okta
kind: oidc
version: v3
metadata:
  name: okta
...
```

Keep your administrative terminal open. From a second terminal window, sign in as a direct member of a mapped Okta group:

******Terminal

```bash
tsh login --proxy=teleport.example.com --auth=okta
If browser window does not open automatically, open it by clicking on the link:
 http://127.0.0.1:52764/9b47d2a1-...
> Profile URL:        https://teleport.example.com:443
  Logged in as:       alice@example.com
  Cluster:            teleport.example.com
  Roles:              editor, access
  Valid until:        2026-12-02 10:30:00 +0000 UTC
```

Confirm that `Roles` shows the roles you mapped in Step 2. If the test user reaches Okta but Teleport denies the login, inspect the failed `user.login` event in the Teleport audit log before changing the connector. Also verify that an account outside the mapped groups is denied access.

## Okta SSO for Teleport Community Edition[​](#okta-sso-for-teleport-community-edition "Direct link to Okta SSO for Teleport Community Edition")

Okta SSO requires Teleport Enterprise. If you follow this guide on a Teleport Community Edition cluster, applying the OIDC connector in Step 2 returns:

text

```text
ERROR: OIDC is only available in Teleport Enterprise
```

This is a licensing restriction, not a configuration issue. Teleport Community Edition does not support Okta SSO, and no configuration flag enables OIDC. The available paths are Teleport Enterprise, a custom Teleport fork, or another platform that includes corporate SSO.

### Upgrade to Teleport Enterprise

Upgrading to Teleport Enterprise is the officially supported way to enable Okta SSO on your existing Teleport cluster.

How much does Teleport Enterprise cost for SSO?

According to [Vendr](https://www.vendr.com/marketplace/teleport), a software procurement and pricing intelligence platform, the **median annual Teleport contract is $50,950/year**, with reported contracts reaching **$137,119/year** (156 purchases, February 2026). These figures reflect total contract values, not the standalone cost of SSO.

If Teleport Community Edition already meets your infrastructure access requirements and Okta SSO is your only reason to upgrade, consider whether an Enterprise subscription is worth the cost.

Upgrading to self-hosted Teleport Enterprise also requires more than applying a license key. As documented in Teleport's [Linux installation guide](https://goteleport.com/docs/installation/linux/), Community Edition and Enterprise are distributed as separate builds. For package-based deployments, you will need to replace `teleport` with `teleport-ent` and maintain a valid Enterprise license.

### Maintain a custom Teleport fork

Another option is to fork Teleport's AGPLv3-licensed codebase and implement your own Okta OIDC connector. Give Claude Code, Codex, or Google Antigravity the codebase and a well-crafted prompt, and you might have a working connector in minutes.

The real work begins with the next upstream release. Your team becomes responsible for upstream merges, security backports, authentication testing, and building and distributing custom binaries across your infrastructure. AGPLv3 copyleft obligations come bundled, too. Corporate legal loves AGPLv3. Especially when you fork it.

### Consider an alternative to Teleport

[AlmaForge](https://almaforge.com/index.md) includes [Okta SSO](https://almaforge.com/sso/okta.md) and group-to-role mapping in [AlmaForge Free](https://almaforge.com/pricing.md). It also supports [Google Workspace](https://almaforge.com/sso/google.md), [Microsoft Entra ID](https://almaforge.com/sso/microsoft.md), Keycloak, and other [OIDC providers](https://almaforge.com/sso/oidc.md).

The platform uses short-lived certificates, reverse tunnels, [label-based RBAC](https://almaforge.com/rbac.md), session playback, and [audit logs](https://almaforge.com/reference/audit.md). It also includes [just-in-time access requests](https://almaforge.com/just-in-time-access.md), ChatOps integrations, and a [kubectl-style CLI](https://almaforge.com/cli.md).

You can reuse the OIDC application and custom authorization server from this guide for an evaluation. Use dedicated credentials in production.

Reuse your Okta SSO configuration with AlmaForge

Add `https://<almaforge-proxy>/api/v1/oidc/callback` to your Okta application's **Sign-in redirect URIs** and apply the corresponding SSO connector:

Teleport Enterprise (teleport-connector.yaml)

```yaml
kind: oidc

version: v3

metadata:

  name: okta

spec:

  display: Okta

  redirect_url: https://teleport.example.com/v1/webapi/oidc/callback

  issuer_url: https://<okta-domain>/oauth2/<auth-server-id>

  client_id: <okta-client-id>

  client_secret: <client-secret-value>

  prompt: select_account

  scope:

    - openid

    - profile

    - email

    - groups

  claims_to_roles:

    - claim: groups

      value: teleport-admins

      roles:

        - editor

        - access
```

AlmaForge Free & Enterprise (okta.yaml)

```yaml
# Okta connector loading clientSecret from a local file.

apiVersion: almaforge.com/v1

kind: OIDCConnector

metadata:

  name: okta

spec:

  display: Okta

  issuerURL: https://<okta-domain>/oauth2/<auth-server-id>

  clientID: <okta-client-id>

  clientSecret: ${file:/etc/almaforge/okta-secret.txt}

  scope:

    - openid

    - profile

    - email

    - groups

  # Use exact, case-sensitive Okta group names under value and list existing

  # AlmaForge roles.

  claimsToRoles:

    - claim: groups

      value: almaforge-admins

      roles: [admin, access]

    - claim: groups

      value: almaforge-developers

      roles: [access]
```

Teleport Enterprise (tctl + tsh)

```bash
tctl create -f teleport-connector.yaml
tsh login --proxy=teleport.example.com --auth=okta
```

AlmaForge Free & Enterprise (alma)

```bash
alma apply -f okta.yaml
alma login --proxy=almaforge.example.com
```

Download [`okta.yaml`](https://almaforge.com/examples/sso/okta/almad.d/okta.yaml).

AlmaForge derives the OIDC callback URL automatically and uses the same Okta custom authorization server and `groups` claim as Teleport. Your existing Okta groups remain the source of infrastructure access policy.

Run an AlmaForge evaluation alongside Teleport, reuse the Okta application and custom authorization server, and test SSO with your existing groups. Your production Teleport cluster remains unchanged. If AlmaForge fits your requirements, follow the migration guide when you are ready.

## Further reading[​](#further-reading "Direct link to Further reading")

* [AlmaForge for Teleport users: migrate with a side-by-side deployment.](https://almaforge.com/migrate/teleport.md)
* [Configure Okta SSO in AlmaForge.](https://almaforge.com/sso/okta.md)
* [Run a local AlmaForge cluster in ten minutes.](https://almaforge.com/quickstart.md)
* [Compare AlmaForge Free and Enterprise editions.](https://almaforge.com/pricing.md)

***

### Disclaimer

Teleport and other third-party trademarks are the property of their respective owners and are used solely for identification and comparison. AlmaForge is not affiliated with, sponsored by, or endorsed by Teleport or its owners. This guide reflects publicly available information reviewed as of December 2026. Product features, pricing, and licensing are subject to change.
