Defer OIDC lookup until first use of the issuer location JwtDecoder #28122
Labels
status: reserved-for-conference-event
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
Spring Security 5.6 is shipping with a new
JwtDecoder
that defers the OIDC discovery lookups that normally happen during startup.Users will be able to do, for example:
And the startup configuration won't be invoked until the app first calls
JwtDecoder#decode
.Today, Spring Boot does something like the following when only an
issuer-uri
is provided:It would be nice if Spring Boot published the
JwtDecoder
as aSupplierJwtDecoder
to provide a quicker and more resilient startup experience.If there is a need for users to restore the previous eager-loading behavior, they can publish the bean themselves; however, a property may also be worth considering.
The text was updated successfully, but these errors were encountered: