What happened?
I was getting Identity verification failed
error when trying out the quick start. I was following the build from source guide
, and uses Auth0 as my IDP. Below is the detailed error message:
We tried to verify the incoming user, but failed with the following error: couldn't get json web key: Get "https://authenticate.localhost.pomerium.io/.well-known/pomerium/jwks.json": dial tcp 127.0.0.1:443: connect: connection refused
What did you expect to happen?
Verification succeeded and getting the expected result from the quick start page.
How’d it happen?
I built the binary from source; installed certs using mkcert and start Pomerium with the following config:
# See detailed configuration settings : https://www.pomerium.com/docs/reference/
# this is the domain the identity provider will callback after a user authenticates
authenticate_service_url: https://authenticate.localhost.pomerium.io
# certificate settings: https://www.pomerium.com/docs/reference/certificates.html
# autocert: true
# REMOVE FOR PRODUCTION
autocert_use_staging: true
# If you're using mkcert to test Pomerium locally, comment the autocert keys and uncomment
# the keys below, adjusting for your mkcert path:
certificate_file: redacted
certificate_key_file: redacted
# identity provider settings : https://www.pomerium.com/docs/identity-providers.html
idp_provider: auth0
idp_provider_url: redacted
idp_client_id: redacted
idp_client_secret: redacted
# Generate 256 bit random keys e.g. `head -c32 /dev/urandom | base64`
cookie_secret: WwMtDXWaRDMBQCylle8OJ+w4kLIDIGd8W3cB4/zFFtg=
# https://pomerium.io/reference/#routes
routes:
- from: https://verify.localhost.pomerium.io
to: https://verify.pomerium.com
policy:
- allow:
or:
- email:
is: redacted
pass_identity_headers: true
I also set up SIGNING_KEY following this guide
Also note that I have no problem callinghttps://authenticate.localhost.pomerium.io/.well-known/pomerium/jwks.json
from browser or through curl.
What’s your environment like?
- Pomerium version (retrieve with
pomerium --version
): v0.20.0 - macOS arm
What’s your config.yaml?
See above