Polish "Start building against Spring Security 5.7.8 snapshots"

See gh-34948
This commit is contained in:
Stephane Nicoll
2023-04-12 12:21:27 +02:00
parent 5bd926d656
commit 3f022867f4

View File

@@ -222,7 +222,7 @@ class OAuth2ResourceServerAutoConfigurationTests {
assertThat(context.containsBean("jwtDecoderByIssuerUri")).isTrue();
SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class);
Supplier<JwtDecoder> jwtDecoderSupplier = (Supplier<JwtDecoder>) ReflectionTestUtils
.getField(supplierJwtDecoderBean, "jwtDecoderSupplier");
.getField(supplierJwtDecoderBean, "delegate");
jwtDecoderSupplier.get();
});
// The last request is to the JWK Set endpoint to look up the algorithm
@@ -246,7 +246,7 @@ class OAuth2ResourceServerAutoConfigurationTests {
assertThat(context.containsBean("jwtDecoderByIssuerUri")).isTrue();
SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class);
Supplier<JwtDecoder> jwtDecoderSupplier = (Supplier<JwtDecoder>) ReflectionTestUtils
.getField(supplierJwtDecoderBean, "jwtDecoderSupplier");
.getField(supplierJwtDecoderBean, "delegate");
jwtDecoderSupplier.get();
});
// The last request is to the JWK Set endpoint to look up the algorithm
@@ -271,7 +271,7 @@ class OAuth2ResourceServerAutoConfigurationTests {
assertThat(context.containsBean("jwtDecoderByIssuerUri")).isTrue();
SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class);
Supplier<JwtDecoder> jwtDecoderSupplier = (Supplier<JwtDecoder>) ReflectionTestUtils
.getField(supplierJwtDecoderBean, "jwtDecoderSupplier");
.getField(supplierJwtDecoderBean, "delegate");
jwtDecoderSupplier.get();
});
// The last request is to the JWK Set endpoint to look up the algorithm
@@ -548,7 +548,7 @@ class OAuth2ResourceServerAutoConfigurationTests {
.run((context) -> {
SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class);
Supplier<JwtDecoder> jwtDecoderSupplier = (Supplier<JwtDecoder>) ReflectionTestUtils
.getField(supplierJwtDecoderBean, "jwtDecoderSupplier");
.getField(supplierJwtDecoderBean, "delegate");
JwtDecoder jwtDecoder = jwtDecoderSupplier.get();
validate(issuerUri, jwtDecoder);
});