Selected work

02 / Identity

The token was valid. The IDP said no.

Traced random auto-identification failures to a JWKS refresh cooldown that rejected valid tokens after key rotation.

ShippedJavaJWTJWKSOAuth2

01The problem

Users intermittently lost automatic TAN identification and were pushed to a high-friction fallback of requesting a PIN by post. It looked random.

02What I did

  1. Traced it to JWT validation against a cached JWKS. When the issuer rotated signing keys, signature validation failed. The provider is meant to refetch the key set and retry, but a refresh cooldown blocked the refetch.
  2. So for a window of time, valid tokens were rejected.
  3. Showed why the proposed fix, a shorter cooldown, only shrinks the window. Changed validation to refetch immediately on a key miss.

03Result

  • Removed a whole class of intermittent authentication failures after key rotation, with no reliance on rotation timing. Merged in February 2026.