This example service uses the Pomerium
Go SDK to parse and display the contents
of the X-Pomerium-Jwt-Assertion header. This can help to validate that a
Pomerium deployment is working as expected.
This service is hosted at https://verify.pomerium.com, or you can deploy an instance in your own Pomerium setup.
The service can be configured with the following environment variables:
-
ADDRListen address for the service. If neither
ADDRnorPORTis set, the service will listen at:8000. -
PORTListen address port for the service. If neither
ADDRnorPORTis set, the service will listen at:8000. -
JWKS_ENDPOINTAllows setting a static URL to use for fetching the public key(s) for verifying the Pomerium JWT. If unset, keys will be fetched from the domain specified in the JWT
issclaim (using the internal Pomerium endpoint at/.well-known/pomerium/jwks.json). Note: in order for this to work correctly, you must definesigning_keyorsigning_key_filein the Pomerium configuration. -
EXPECTED_JWT_ISSUERWhen set, JWT verification will additionally validate that the issuer claim (
iss) matches the given value. -
EXPECTED_JWT_AUDIENCEWhen set, JWT verification will additionally validate that the audience claim (
aud) matches the given value. -
EXTRA_CA_CERTSComma-separated list of file paths to CA certs. These certs will be used in addition to the system defaults.
-
GCLOUD_PROJECTWhen set to a Firebase project ID, the service will use Cloud Firestore as a storage backend for WebAuthn-related storage. (By default, the service will store this data in memory instead.)