Skip to content

Commit dfa0a83

Browse files
committed
Adapt to change in Spring Security's JWT validation
See gh-45492 See spring-projects/spring-security#17181
1 parent 6e67dc6 commit dfa0a83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/reactive/ReactiveOAuth2ResourceServerAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ void autoConfigurationShouldNotConfigureIssuerUriAndAudienceJwtValidatorIfProper
491491
assertThat(context).hasSingleBean(ReactiveJwtDecoder.class);
492492
ReactiveJwtDecoder reactiveJwtDecoder = context.getBean(ReactiveJwtDecoder.class);
493493
validate(jwt(), reactiveJwtDecoder,
494-
(validators) -> assertThat(validators).hasSize(2).noneSatisfy(audClaimValidator()));
494+
(validators) -> assertThat(validators).hasSize(3).noneSatisfy(audClaimValidator()));
495495
});
496496
}
497497

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ void autoConfigurationShouldNotConfigureIssuerUriAndAudienceJwtValidatorIfProper
510510
assertThat(context).hasSingleBean(JwtDecoder.class);
511511
JwtDecoder jwtDecoder = context.getBean(JwtDecoder.class);
512512
validate(jwt(), jwtDecoder,
513-
(validators) -> assertThat(validators).hasSize(2).noneSatisfy(audClaimValidator()));
513+
(validators) -> assertThat(validators).hasSize(3).noneSatisfy(audClaimValidator()));
514514
});
515515
}
516516

0 commit comments

Comments
 (0)