Skip to content

triauth for TemporalOIDC

Let your engineers open the Temporal Web UI with one approval on their own device, and no passwords for the console.

  • Code and DevOps
  • Open source
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

  1. Open oidc.triauth.org and enter your domain. Paste the Web UI's redirect address, https://temporal.example.com/auth/sso/callback with your own Web UI address in place of temporal.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Add the section below to the UI Server's configuration file and restart it. Replace example.com with your domain, temporal.example.com with your Web UI address, and the two placeholders with the client ID and the client secret from the bridge.

    yaml
    auth:
      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_access
  3. Open 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

SettingValue
Redirect addresshttps://<your-web-ui>/auth/sso/callback, the same value as callbackUrl
Where in Temporalthe 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 URLproviderUrl takes https://oidc.triauth.org/<your domain>, and the rest comes from the discovery document. issuerUrl stays empty
Scopeswith 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 lengthrefreshTokenDuration can stay unset. maxSessionDuration, such as 8h, forces a daily sign-in
Sign-in pageredirectToProvider: true skips the page with the button
Authorizationthe 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

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.