Polish "Start building against Spring Security 6.0.3 snapshots"

See gh-34952
This commit is contained in:
Stephane Nicoll
2023-04-12 12:29:58 +02:00
parent c3e3bfcf74
commit 9a4a522004

View File

@@ -192,7 +192,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
@@ -216,7 +216,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
@@ -241,7 +241,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
@@ -516,7 +516,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);
});