Skip to main content

Identity Providers (per route)

Summary

Identity Providers (per route) narrows which of the globally-declared identity_providers are accepted on this route. It is an allowlist of provider names.

This setting is only meaningful on a route whose effective bearer token format is jwt. When left unset, the route accepts a token from any configured provider. When set, a token whose provider is not on the list is rejected before its signature is checked.

Every name must exist in the global identity_providers map. Setting this on a route that does not use the jwt format is a configuration error, and Pomerium refuses to start.

See Machine-to-Machine Access with Bearer Tokens for an overview and examples.

How to configure

YAML/JSON settingTypeUsage
identity_providersarray of stringoptional

Examples

routes:
- from: https://api.localhost.pomerium.io
to: http://api-backend
bearer_token_format: jwt
identity_providers:
- kubernetes
policy:
- allow:
and:
- claim/sub: system:serviceaccount:default:pom-tester