Skip to content

triauth for TeleportOIDC

Let your engineers sign in to Teleport with one approval on their own device, and no passwords or long-lived keys.

  • Access and networking
  • Commercial
Sign-in through
OpenID Connect bridge
Available in
Teleport Enterprise, cloud and self-hosted
Set up in
An OIDC connector

About Teleport

Teleport is an access platform for servers, Kubernetes clusters, databases, web apps, and desktops. Engineers sign in once and get short-lived certificates instead of passwords or keys, and every session is recorded. Companies use it in place of VPNs, bastion hosts, and shared credentials.

Connect Teleport to triauth

Teleport signs people in through the triauth OpenID Connect bridge, with an OIDC connector. Once connected, the web interface and tsh login offer a button with your domain's name. People on your team click it, type their username, and approve on their own device, and Teleport issues their certificates. When someone leaves, removing their identity records at your domain ends their access to everything behind Teleport.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste Teleport's redirect address, https://teleport.example.com/v1/webapi/oidc/callback with your own proxy address in place of teleport.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Save the connector below as oidc-connector.yaml, with your domain in place of example.com, your proxy address, and the client ID and the client secret from the bridge. The two rules at the end give roles to two groups published at your domain.

    yaml
    kind: oidc
    version: v3
    metadata:
      name: example-com
    spec:
      display: example.com
      issuer_url: https://oidc.triauth.org/example.com
      client_id: <client ID from the bridge>
      client_secret: <client secret from the bridge>
      redirect_url: https://teleport.example.com/v1/webapi/oidc/callback
      scope: [groups]
      claims_to_roles:
        - claim: groups
          value: platform-team@example.com
          roles: [access]
        - claim: groups
          value: platform-admins@example.com
          roles: [editor, auditor]
  3. Test it and create it:

    sh
    tctl sso test < oidc-connector.yaml
    tctl create -f oidc-connector.yaml
  4. Open the web interface and click example.com, or run tsh login --proxy=teleport.example.com --auth=example-com.

Checkpoint

The sign-in page shows a button labelled example.com. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve. tsh login opens the same page in the browser and receives its certificates when the sign-in is done.

Good to know

  • Teleport creates a temporary user for everyone whose groups match a rule, and turns away anyone without a matching role. There is nothing to provision by hand.
  • Certificates last twelve hours by default, so nobody signs in again mid-day.
  • Single sign-on through your own identity provider is part of Teleport Enterprise. The Community Edition signs in through GitHub only.

For the person who connects the app

SettingValue
Redirect addresshttps://<your proxy>/v1/webapi/oidc/callback, one for the web interface and tsh alike. The proxy forwards tsh sign-ins to its own local listener
Where in Teleporttctl with a connector file, or Zero Trust Access › Auth Connectors in the web interface
Issuerissuer_url takes https://oidc.triauth.org/<your domain> without the well-known part, and the rest comes from the discovery document
PromptTeleport sends select_account by default, which the bridge accepts
PKCEoptional, pkce_mode: enabled. The client secret is always sent

Teleport keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Teleport's OIDC guide explains every field of the connector and how to make it the default sign-in.

Next steps

All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.