Skip to main content

OIDC Bridge

Summary​

When the OIDC bridge is enabled, Pomerium acts as an OpenID Connect (OIDC) provider for upstream applications. An upstream application that supports OIDC sign-in can use Pomerium as its identity provider, and users sign in with their existing Pomerium session.

The OIDC bridge can be configured globally, as the default for all routes, or on individual routes. Route-level settings replace the global settings entirely: they are not merged.

note

The OIDC bridge requires a configured identity provider (idp_provider). It is not supported with the hosted authenticate service.

Endpoints​

The issuer is your authenticate service URL. Applications can discover the remaining endpoints from /.well-known/openid-configuration on that URL:

EndpointPath
Discovery/.well-known/openid-configuration
Authorization/oidc/auth
Token/oidc/token
UserInfo/oidc/userinfo
JWKS/oidc/jwks.json

Client ID​

There is no client registration. An upstream application uses an https URL served by the route as its client_id, for example https://app.example.com/. The URL must not contain a query string, a fragment, credentials, or relative path components.

Settings​

SettingTypeDescription
enabledbooleanWhether the OIDC bridge is enabled. If the OIDC bridge settings are present and enabled is not set, the OIDC bridge is enabled.
client_secretstringOptional client secret.
redirect_urisarray of stringsOptional list of allowed redirect URIs.

Client secret​

By default, upstream applications are treated as public clients and must use PKCE. Set a client secret for upstream applications that do not support public clients or PKCE. Applications then authenticate to the token endpoint with the client_id and this secret.

Redirect URIs​

A list of redirect URIs that upstream applications may use when signing in through the OIDC bridge. A redirect_uri must exactly match an entry in the list.

When the list is empty, any redirect_uri on the same host as the client_id is allowed, as long as its path is the client_id path or a subpath of it.

How to configure​

Config file keysTypeUsage
oidc_bridgeobjectoptional

oidc_bridge can be set at the top level of the configuration file, as the default for all routes, or on an individual route.

Examples​

oidc_bridge:
enabled: true

routes:
- from: https://app.example.com
to: http://app.internal:8080
oidc_bridge:
enabled: true
client_secret: REPLACE_ME
redirect_uris:
- https://app.example.com/oauth/callback