Bounded JWKS refresh on unknown key IDs helps signup verification avoid stale-key failures
A JWT verifier can reject legitimate service tokens when its cached key set predates a signing-key rotation. The proposed fix refreshes the cached keys on an unknown key ID and retries key selection once, while limiting refresh frequency so arbitrary tokens cannot trigger unlimited upstream requests. Key sources stay fixed in service configuration, and tokens whose key remains unknown after refresh are rejected. The approach is placed between the captcha check and the authenticated SMS handoff, so passing a captcha does not bypass identity verification. The article also recommends tracking refresh and rejection metrics separately from captcha and SMS outcomes.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in