spring-security
spring-security copied to clipboard
JWKS validation should have a mode where it can be done in the background
it blocks startup otherwise
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.