triauth for TeleportOIDC
Let your engineers sign in to Teleport with one approval on their own device, and no passwords or long-lived keys.
- 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
Open oidc.triauth.org and enter your domain. Paste Teleport's redirect address,
https://teleport.example.com/v1/webapi/oidc/callbackwith your own proxy address in place ofteleport.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Save the connector below as
oidc-connector.yaml, with your domain in place ofexample.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.yamlkind: 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]Test it and create it:
shtctl sso test < oidc-connector.yaml tctl create -f oidc-connector.yamlOpen the web interface and click
example.com, or runtsh 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
| Setting | Value |
|---|---|
| Redirect address | https://<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 Teleport | tctl with a connector file, or Zero Trust Access › Auth Connectors in the web interface |
| Issuer | issuer_url takes https://oidc.triauth.org/<your domain> without the well-known part, and the rest comes from the discovery document |
| Prompt | Teleport sends select_account by default, which the bridge accepts |
| PKCE | optional, 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
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to publish the groups that the connector's rules refer to.
- Read Teleport's OIDC guide for every setting Teleport offers.
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.