October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

When OIDC Authentication Breaks: Finding the Hidden Discovery and JWKS Dependency

OIDC token validation can depend on remote discovery metadata and signing keys. Learn how reachability, caching, issuer checks, and AWS-specific federation limits affect troubleshooting.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An application that validates OpenID Connect (OIDC) tokens may depend on more than its own login code: it can also need access to its identity provider’s discovery document and signing keys. If those remote endpoints are unreachable, blocked, slow, or return keys the relying party cannot use, authentication can fail. The specific incident implied by “The OIDC Dependency We Didn’t Know We Had” could not be verified from the available sources, so this article explains the general architecture and clearly separates documented AWS examples from any unconfirmed event.

How OIDC discovery creates an external dependency

OpenID Connect adds an identity layer to OAuth 2.0. Its Discovery specification describes how a client, acting as a relying party, obtains information about an OpenID Provider. That information includes endpoint locations and an issuer identifier. The specification describes discovery as enabling clients to verify an end user’s identity based on authentication performed by an authorization server and to obtain basic profile information in an interoperable way. OpenID Connect Discovery 1.0 incorporating errata set 2 is dated December 15, 2023.

As an Amazon Associate I earn from qualifying purchases.

From provider metadata to signature validation

The discovery document identifies a jwks_uri, the location of the provider’s JSON Web Key Set (JWKS). The set contains public key material that a relying party can use to validate token signatures. The issuer value in discovery must match the iss claim in ID tokens issued by that provider. A mismatch is not just a connectivity issue: it means the token’s claimed issuer does not agree with the provider metadata the client is using.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In practical terms, an application may need to retrieve metadata to learn where the keys are, and retrieve keys to validate a token. These calls are part of the authentication architecture even if they are absent from a diagram that shows only the application, users, and identity provider.

#1 Best Overall
Yubico - Security Key C NFC - Basic Compatibility - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.

Does token validation require contacting the identity provider on every login?

Not necessarily. The protocol identifies the metadata and key locations, but it does not establish that every OIDC client fetches them on every login. A client library may cache discovery metadata or JWKS, and its refresh behavior depends on the implementation and configuration. That means the operational dependency still exists, but its timing and failure behavior vary: a cached key may allow validation to continue temporarily, while a cache refresh or a newly rotated signing key may require a successful retrieval.

Before treating an endpoint outage as the cause of a login failure—or assuming cached data will protect the application—check the specific client library and deployment configuration. Review how it refreshes keys, how it handles an unknown key identifier, and what happens when discovery or JWKS retrieval fails.

Rank #2
Yubico - Security Key NFC - Basic Compatibility - Multi-Factor Authentication (MFA) Key, Connect via USB-A or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key NFC via USB-A and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.

What happens when a discovery or JWKS endpoint is unreachable?

If the relying party cannot obtain metadata or a usable signing key when needed, it may be unable to validate the token and complete authentication. Causes can sit outside application code: egress restrictions, firewall rules, network routes, provider availability, or latency. AWS describes a VPC-based relying party fetching discovery and JWKS information from an issuer URL to validate a JWT, and documents an STS OIDC discovery endpoint option. This is an AWS implementation example, not a claim that every OIDC deployment uses the same network path. See AWS guidance for creating a VPC endpoint for STS OIDC discovery.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

AWS federation errors: specific failure modes, not universal limits

AWS IAM troubleshooting guidance lists possible causes of “Couldn’t retrieve verification key from your identity provider” in its federation context:

Rank #3
Yubico - YubiKey 5 NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-A or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
  • The provider’s .well-known or jwks_uri endpoint is not accessible from the public internet.
  • A firewall blocks the request.
  • Latency from the identity provider to STS exceeds five seconds for the relevant API request path.
  • A large JWKS causes requests to be throttled.

AWS suggests checking public endpoint accessibility, firewall rules, operation latency, and whether unnecessary keys can be removed. Its IAM provider configuration guide also states that when a JWKS contains more than 100 RSA keys or more than 100 EC keys, AssumeRoleWithWebIdentity returns InvalidIdentityToken if the JWT is signed by a key type that exceeds that limit. This is an AWS service behavior for that operation, not an OIDC protocol-wide key limit. Read AWS’s OIDC federation troubleshooting guidance and AWS’s IAM OIDC identity-provider configuration guide for the applicable details.

How to investigate an OIDC dependency in your own system

Use the actual relying-party environment for the checks: a test from a developer laptop may not reveal a firewall or egress restriction affecting a production workload.

Rank #4
Yubico - YubiKey 5C NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
  1. Inspect the discovery document. Retrieve the provider’s configured discovery URL and confirm that it returns metadata for the expected issuer and includes a jwks_uri.
  2. Check issuer consistency. Compare the metadata’s issuer value with the token’s iss claim. They must match for the provider described by the discovery specification.
  3. Test endpoint reachability from the relying party. Confirm that the application’s runtime environment can reach the discovery URL and the returned jwks_uri, rather than checking from a different network.
  4. Review network controls and latency. Inspect firewall, route, and egress policies along the request path. If the integration is AWS federation, use AWS’s stated timing and troubleshooting conditions as AWS-specific context, not as a general OIDC timeout rule.
  5. Inspect the JWKS and key rotation process. Confirm the published keys are the ones needed for current tokens, remove unnecessary keys where appropriate, and understand how the client learns about rotated keys. For AWS AssumeRoleWithWebIdentity, check the service’s key-count behavior described above.
  6. Verify cache and refresh behavior. Consult the exact library and configuration to learn when metadata and keys are cached, refreshed, or discarded, and what occurs if a token references a key the cache does not contain.
  7. Correlate evidence across systems. Compare token-validation errors with application logs, network telemetry, and identity-provider availability or request logs to distinguish issuer mismatch, unreachable endpoints, latency, and key retrieval problems.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What the title’s implied incident can—and cannot—establish

The available sources do not identify an organization, application, outage date, root cause, or remediation behind the incident implied by the title. The AWS examples above document failure modes in AWS IAM federation; they are not evidence that AWS, a particular provider, or any specific endpoint caused that unidentified event.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is also dated standards-security context, but it is separate from this dependency mechanism. On February 25, 2025, the OpenID Foundation published a notice saying that a formal analysis of OpenID Federation found a vulnerability involving ambiguities in JWT audience values sent to authorization servers, and that the issue also affected other OpenID and OAuth specifications. The notice says corrective actions had been incorporated into OpenID specifications and certification tests, with work underway for affected OAuth specifications. It does not connect that vulnerability to the title’s implied incident. See the OpenID Foundation security notice.

Best Value
FIDO2 U2F Security Key Passkey Two-Factor Authentication (2FA) USB Key PIN+Touch (Non-Biometric) USB-A Type TrustKey T110
  • Security Key : Protect your online accounts against unauthorized access by using FIDO2 and U2F authentication with T110. It's the world's most protective security key that works with windows, Mac OS, Linux as well as Chrome, Firefox, Edge and many other major browsers.
  • Certified with the new FIDO2 standard, T110 provides the benefit of fast login and strong protection against phishing, account takeover as well as many other online attactks.
  • Works with : Bank of America, Github, Google, Microsoft, DUO, Twitter, Facebook, Dropbox, Apple, ebay, BINANCE, mor and more.
  • Fits USB-A port : Insert the T110 security key into the USB-A port of each service and log in conveniently with one touch
  • For the driver download and user guide, please visit TrustKey Solutions Home support page.

The architecture lesson

Document the identity provider’s discovery and key endpoints as dependencies of the relying party, not as incidental URLs. Record where they are fetched from, which network boundaries govern access, how the client caches and refreshes data, how key rotation is handled, and what operators will see when retrieval or validation fails. The right outage behavior depends on the implementation and security requirements; the cited sources do not establish a universal cache duration or a fail-open or fail-closed policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.