Skip to content

triauth for PomeriumOIDC

Let your team reach the internal tools behind Pomerium with one approval on their own device, and no VPN or passwords.

  • Access and networking
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Every edition, self-hosted and hosted
Set up in
config.yaml

About Pomerium

Pomerium is a proxy that sits in front of internal web applications and lets people reach them only after they sign in, checking every request against an access policy. Teams use it instead of a VPN to publish internal tools, and the apps behind it learn who the person is from headers.

Connect Pomerium to triauth

Pomerium signs people in through the triauth OpenID Connect bridge. Once connected, anyone opening a protected tool is sent to the bridge, types their username, and approves on their own device. The tools behind Pomerium never see a password, and when someone leaves, removing their identity records at your domain ends their access to all of them.

How it works

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

  2. Put the settings below in Pomerium's config.yaml and restart Pomerium. Replace example.com with your domain, the two placeholders with the client ID and the client secret from the bridge, and the two secrets with random values of your own, as Pomerium's guide shows.

    yaml
    authenticate_service_url: https://authenticate.example.com
    idp_provider: oidc
    idp_provider_url: https://oidc.triauth.org/example.com
    idp_client_id: <client ID from the bridge>
    idp_client_secret: <client secret from the bridge>
    idp_scopes: openid, email, profile, groups, offline_access
    cookie_secret: <a random secret of 32 bytes, base64>
    shared_secret: <a random secret of 32 bytes, base64>
    routes:
      - from: https://app.example.com
        to: http://127.0.0.1:8080
        policy:
          - allow:
              and:
                - domain:
                    is: example.com
  3. Open the protected app.

Checkpoint

Opening https://app.example.com sends the browser to a page from the bridge that asks for the username, and the person's authenticator asks them to approve. The app opens afterwards.

Good to know

  • Pomerium keeps no accounts. Everyone with an identity at your domain can sign in, and the policy on each route decides who gets through. A policy can name a domain, a list of identifiers, or one of the groups published at your domain, written as claim/groups: team@example.com. You can also limit the app to a group when you connect it.
  • Pomerium renews every session through the bridge in the background, shortly before its token expires, so a removed identity or a changed group takes effect at the next renewal without anyone noticing. Its own sessions usually last 14 hours, after which people sign in again.
  • The apps behind Pomerium learn who signed in from the headers Pomerium adds, such as the person's identifier and groups.

For the person who connects the app

SettingValue
Redirect addresshttps://<your authenticate service>/oauth2/callback, where the authenticate service is authenticate_service_url
Where in Pomeriumconfig.yaml or the matching environment variables on a self-hosted Pomerium, or Settings › Identity Providers in the hosted console
Provider URLidp_provider_url takes https://oidc.triauth.org/<your domain>, the address before /.well-known/openid-configuration, and the rest comes from the discovery document
Scopesidp_scopes already includes offline_access by default. The line above adds groups and must keep offline_access, which is what lets Pomerium renew a session
Groupsthe groups claim is read from the ID token and is available to policies as claim/groups in every edition. Directory sync is a separate feature of the paid edition and is not needed
Session lengthcookie_expire, usually 14 hours. A higher value such as 168h lets the renewals keep a session going for as long as the bridge renews it
LoadPomerium renews each signed-in person's session in the background whenever the bridge's short-lived token nears its end, whether or not the person is active
Sign-outPomerium clears its own session only, since the bridge has no sign-out endpoint

Pomerium keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Pomerium's generic OIDC guide walks through the setup, and the identity provider settings reference lists every key.

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.