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
Teleport cluster
Verify the edition your cluster runs from your workstation:
tctl statusCluster teleport.example.comVersion 19.0.2Then check the server binary on an Auth Service host:
teleport versionTeleport Enterprise v19.0.2 git:v19.0.2 go1.25.5The output must contain Teleport Enterprise. If it reads only Teleport, the
cluster is Community Edition and cannot create this connector.
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
for the available options.
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
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
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
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.
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
If you do not use Terraform, follow Okta Admin Console setup below instead.
Save
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:
umask 077export OKTA_ORG_NAME="example"export OKTA_BASE_URL="okta.com"export OKTA_API_TOKEN="<okta-api-token>"terraform initterraform apply -var='proxy_public_addr=teleport.example.com'terraform output -raw issuer_urlterraform output -raw client_idterraform output -raw client_secretContinue to Step 2 to use these values in the Teleport connector.
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 1.1. Create the OIDC application
-
Sign in to the Okta Admin Console.
-
Open Applications → Applications and click Create App Integration.
-
Select OIDC - OpenID Connect as the Sign-in method and Web Application as the Application type, then click Next.
-
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. Replaceteleport.example.comwith your public Teleport Proxy hostname. Keephttps://, 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.
- App integration name:
-
Click Save.
-
On the application's General tab under Client Credentials, copy the Client ID and Client secret.
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
-
In the left sidebar, open Security → API.
-
On the Authorization Servers tab, click Add Authorization Server.
-
Set these fields.
- Name:
teleport - Audience:
teleport - Description:
Teleport OIDC Authorization Server
- Name:
-
Click Save. Okta opens the new authorization server with five tabs across the top: Settings, Scopes, Claims, Access Policies, and Token Preview.
-
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
Scopes and claims are configured on the custom authorization server you
created in Step 1.2, not on the
OIDC application. If you navigated away, open Security → API → Authorization
Servers and click your teleport authorization server.
-
Click the Scopes tab and click Add Scope.
-
Set Name to
groups, Display name toGroups, and Description toReturn Okta group memberships, then click Create. -
Click the Claims tab right next to Scopes and click Add Claim.
-
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 asteleport-) - Include in: Any scope (or The following scopes →
groups)
- Name:
-
Click Create. Confirm that
groupsappears in the Claims table with Typeidand IncludedAlways.
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.
-
Click the Access Policies tab right next to Claims and click Add Policy.
-
Set Name to
Default, select Assign to → The following clients, and pick theTeleport Accessapplication from Step 1.1. Click Create Policy. -
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, andgroups)
- Rule Name:
-
Click Create Rule.
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
Write the Teleport kind: oidc (version: v3) connector manifest as
teleport-connector.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 (or Step 1.2).<okta-client-id>and<client-secret-value>with the credentials from Step 1 (or Step 1.1).redirect_urlwith the exact callback URI configured in Step 1.claims_to_roleswith your Okta group names and existing Teleport roles. Matching is exact and case-sensitive.
Apply the connector from your authenticated Teleport admin terminal:
tctl create -f teleport-connector.yamlauthentication connector "okta" has been createdStep 3. Verify login with tsh
Confirm that the connector exists on your Teleport cluster:
tctl get oidc/oktakind: oidcversion: v3metadata: name: okta...Keep your administrative terminal open. From a second terminal window, sign in as a direct member of a mapped Okta group:
tsh login --proxy=teleport.example.com --auth=oktaIf 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 UTCConfirm 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 requires Teleport Enterprise. If you follow this guide on a Teleport Community Edition cluster, applying the OIDC connector in Step 2 returns:
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.
According to Vendr, 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,
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 includes Okta SSO and group-to-role mapping in AlmaForge Free. It also supports Google Workspace, Microsoft Entra ID, Keycloak, and other OIDC providers.
The platform uses short-lived certificates, reverse tunnels, label-based RBAC, session playback, and audit logs. It also includes just-in-time access requests, ChatOps integrations, and a kubectl-style CLI.
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:
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
# 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]
tctl create -f teleport-connector.yamltsh login --proxy=teleport.example.com --auth=oktaalma apply -f okta.yamlalma login --proxy=almaforge.example.comDownload 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
- AlmaForge for Teleport users: migrate with a side-by-side deployment.
- Configure Okta SSO in AlmaForge.
- Run a local AlmaForge cluster in ten minutes.
- Compare AlmaForge Free and Enterprise editions.
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.