Inconsistent handling of empty string values of spring.security.oauth2.resourceserver.jwt issuer-uri and jwk-set-uri#50755
Merged
wilkinsona merged 2 commits intoJun 24, 2026
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: Vinod Kumar <codingkiddo@gmail.com> See spring-projectsgh-50755
2376887 to
4eeac6a
Compare
wilkinsona
added a commit
to codingkiddo/spring-boot
that referenced
this pull request
Jun 24, 2026
See spring-projectsgh-50755 Signed-off-by: Andy Wilkinson <andy.wilkinson@broadcom.com>
4eeac6a to
a495492
Compare
Member
|
Thank you, @codingkiddo! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes gh-50753
This updates JWT decoder auto-configuration so that an empty
spring.security.oauth2.resourceserver.jwt.jwk-set-urivalue is treated asabsent.
Previously, the JWK Set URI based decoder could be created when the property was
present but empty. When
issuer-uriwas also configured, this could result inboth the JWK Set URI based decoder and the issuer-uri based decoder being
created.
A regression test has been added for the case where
issuer-uriis configuredand
jwk-set-uriis present with an empty value.