triauth for PomeriumOIDC
Let your team reach the internal tools behind Pomerium with one approval on their own device, and no VPN or passwords.
- 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
Open oidc.triauth.org and enter your domain. Paste Pomerium's redirect address,
https://authenticate.example.com/oauth2/callbackwith your own authenticate service address in place ofauthenticate.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Put the settings below in Pomerium's
config.yamland restart Pomerium. Replaceexample.comwith 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.yamlauthenticate_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.comOpen 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
| Setting | Value |
|---|---|
| Redirect address | https://<your authenticate service>/oauth2/callback, where the authenticate service is authenticate_service_url |
| Where in Pomerium | config.yaml or the matching environment variables on a self-hosted Pomerium, or Settings › Identity Providers in the hosted console |
| Provider URL | idp_provider_url takes https://oidc.triauth.org/<your domain>, the address before /.well-known/openid-configuration, and the rest comes from the discovery document |
| Scopes | idp_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 |
| Groups | the 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 length | cookie_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 |
| Load | Pomerium 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-out | Pomerium 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
- 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 Pomerium's policies let through.
- Read Pomerium's generic OIDC guide for every setting Pomerium 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.