advancedOAuth2 & OpenID Connect Deep Dive
How does a resource server validate a JWT access token without calling the Authorization Server on every request?
The resource server fetches the Authorization Server's public signing keys once via the JWKS (JSON Web Key Set) endpoint and caches them, then verifies each incoming JWT's signature locally using those cached public keys — since JWTs are self-contained and signature-verifiable, no per-request network round-trip to the Authorization Server is needed (unlike opaque tokens, which require an introspection call every time).
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response