triauth for TemporalOIDC
Let your engineers open the Temporal Web UI with one approval on their own device, and no passwords for the console.
- Sign-in through
- OpenID Connect bridge
- Available in
- Every self-hosted Web UI
- Set up in
- The UI Server configuration
About Temporal
Temporal runs long-running business processes written as ordinary code and keeps their state safe across crashes, retries, and deployments. Its Web UI is the console where operators list workflows, read their histories, and cancel, signal, or reset them.
Connect Temporal to triauth
The Temporal Web UI signs people in through the triauth OpenID Connect bridge. Once connected, the console's sign-in page shows Continue to SSO. Engineers click it, type their username, and approve on their own device. Nobody keeps a password for the console, and when someone leaves, removing their identity records at your domain ends their access to it as well.
How it works
Open oidc.triauth.org and enter your domain. Paste the Web UI's redirect address,
https://temporal.example.com/auth/sso/callbackwith your own Web UI address in place oftemporal.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the section below to the UI Server's configuration file and restart it. Replace
example.comwith your domain,temporal.example.comwith your Web UI address, and the two placeholders with the client ID and the client secret from the bridge.yamlauth: enabled: true providers: - label: example.com type: oidc providerUrl: https://oidc.triauth.org/example.com clientId: <client ID from the bridge> clientSecret: <client secret from the bridge> callbackUrl: https://temporal.example.com/auth/sso/callback scopes: - openid - profile - email - offline_accessOpen the Web UI and click Continue to SSO.
Checkpoint
The Web UI's sign-in page shows Continue to SSO. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve. The workflows page then opens.
Good to know
- The Web UI keeps no accounts. Everyone with an identity at your domain can open the console, so limit the app to a group when you connect it if only one team should get in.
- What a signed-in person may do with workflows is decided by the Temporal service's own authorization, not by the Web UI. The groups published at your domain reach it only through a claim mapper of your own.
- The Web UI renews the sign-in through the bridge while a person works, without anyone noticing, and a removed identity is out at the next renewal. Temporal Cloud, the hosted service, has its own sign-in and is not covered here.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-web-ui>/auth/sso/callback, the same value as callbackUrl |
| Where in Temporal | the UI Server's YAML file, or the environment variables TEMPORAL_AUTH_ENABLED, TEMPORAL_AUTH_PROVIDER_URL, TEMPORAL_AUTH_CLIENT_ID, TEMPORAL_AUTH_CLIENT_SECRET, TEMPORAL_AUTH_CALLBACK_URL, and TEMPORAL_AUTH_SCOPES with the scopes comma-separated |
| Provider URL | providerUrl takes https://oidc.triauth.org/<your domain>, and the rest comes from the discovery document. issuerUrl stays empty |
| Scopes | with offline_access. Without it, the console sends people back through the sign-in whenever its short-lived token expires. A bridge error at a renewal sends them to the sign-in page as well |
| Session length | refreshTokenDuration can stay unset. maxSessionDuration, such as 8h, forces a daily sign-in |
| Sign-in page | redirectToProvider: true skips the page with the button |
| Authorization | the Web UI forwards the bridge's access token to the Temporal service, where a claim mapper and an authorizer of your own decide the permissions. useIdTokenAsBearer: true forwards the ID token instead, which carries the identifier and the groups |
The Web UI keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Temporal's Web UI configuration reference explains every key, and the security guide covers the claim mapper.
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 limit the console to one team when you connect it.
- Read Temporal's Web UI configuration reference for every setting the UI Server 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.