TRUSTED_SOURCES_OIDC_DISCOVERY_FAILED
The TRUSTED_SOURCES_OIDC_DISCOVERY_FAILED error occurs when a request reaches a deployment protected by Trusted Sources with an OIDC token whose issuer is configured as a custom trusted source, but Vercel can't fetch a valid OpenID Connect discovery document from that issuer.
This usually means the issuer URL is unreachable, doesn't serve a valid /.well-known/openid-configuration document, or resolves to a host that can't be reached from the public internet.
TRUSTED_SOURCES_OIDC_DISCOVERY_FAILED:
Forbidden
To resolve this error:
- Confirm the issuer URL configured under the project's Trusted Sources matches the
issclaim on the token exactly, including scheme and trailing path. - From a public network, fetch
<issuer>/.well-known/openid-configurationand verify it returns a valid JSON discovery document withjwks_uri,issuer, and supported algorithms. - Check that the issuer's host resolves publicly and isn't behind a private network, VPN, or firewall that blocks inbound connections from Vercel.
- If the issuer was recently rotated or migrated, retry the request after DNS and any caches have settled.
If the issuer is intentionally private or unreachable from the public internet, it can't be used as a Trusted Source. Use a different bypass method, such as Protection Bypass for Automation, instead.
For more details on configuring custom issuers, see the Trusted Sources documentation.
Was this helpful?