|
|
@ -123,8 +123,7 @@ class ReactiveOAuth2ResourceServerAutoConfigurationTests {
|
|
|
|
"spring.security.oauth2.resourceserver.jwt.public-key-location=classpath:public-key-location",
|
|
|
|
"spring.security.oauth2.resourceserver.jwt.public-key-location=classpath:public-key-location",
|
|
|
|
"spring.security.oauth2.resourceserver.jwt.jws-algorithm=RS384").run((context) -> {
|
|
|
|
"spring.security.oauth2.resourceserver.jwt.jws-algorithm=RS384").run((context) -> {
|
|
|
|
NimbusReactiveJwtDecoder nimbusReactiveJwtDecoder = context.getBean(NimbusReactiveJwtDecoder.class);
|
|
|
|
NimbusReactiveJwtDecoder nimbusReactiveJwtDecoder = context.getBean(NimbusReactiveJwtDecoder.class);
|
|
|
|
assertThat(nimbusReactiveJwtDecoder)
|
|
|
|
assertThat(nimbusReactiveJwtDecoder).extracting("jwtProcessor.arg$1.jwsKeySelector.expectedJWSAlg")
|
|
|
|
.extracting("jwtProcessor.arg$1.jwsKeySelector.expectedJwsAlgorithm")
|
|
|
|
|
|
|
|
.isEqualTo(JWSAlgorithm.RS384);
|
|
|
|
.isEqualTo(JWSAlgorithm.RS384);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|