OIDC discovery and JWKS
Question Variations
- "How does a relying party handle signing-key rotation?"
- "Why should an application configure an issuer rather than accept one from a request?"
- "What should happen when a token has an unknown kid?"
Why This Is Asked
OIDC integrations need a secure way to find endpoints and signing keys without hardcoding every value. This question tests trust anchoring, metadata validation, key rotation, caching, and why discovery must not begin from an attacker-controlled issuer string.
Key Concepts
- Discovery document: Issuer metadata at the well-known OpenID configuration endpoint.
- JWKS: A published set of public keys used to verify signed tokens.
- Key IDs:
kidselects a candidate key during planned rotation. - Trust anchor: The issuer is configured by the application before discovery starts.
Question Variations
- “How does a relying party handle signing-key rotation?”
- “Why should an application configure an issuer rather than accept one from a request?”
- “What should happen when a token has an unknown kid?”