spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

JWKS validation should have a mode where it can be done in the background

Open joshlong opened this issue 10 months ago • 1 comments

it blocks startup otherwise

joshlong avatar Jan 27 '26 17:01 joshlong

I’ve been exploring an approach for supporting background JWKS initialization.

Instead of blocking during JWKSource initialization, I’m considering introducing an optional builder flag that initializes the underlying JWKSource asynchronously and delegates once ready.

This would allow startup to proceed without blocking on remote JWK retrieval.

Before proceeding further, I wanted to confirm whether this direction aligns with the intended design.

yashdotdev13 avatar Feb 25 '26 10:02 yashdotdev13