Browse Source

Upgrade to Spring Security 5.3.3.RELEASE

Closes gh-21863
pull/22035/head
Andy Wilkinson 6 years ago
parent
commit
3e5fcee187
  1. 9
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerAutoConfigurationTests.java
  2. 2
      spring-boot-project/spring-boot-dependencies/build.gradle

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

@ -28,6 +28,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; @@ -28,6 +28,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.nimbusds.jose.JWSAlgorithm;
import okhttp3.mockwebserver.MockResponse;
import okhttp3.mockwebserver.MockWebServer;
import org.assertj.core.api.InstanceOfAssertFactories;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
@ -99,7 +100,9 @@ class OAuth2ResourceServerAutoConfigurationTests { @@ -99,7 +100,9 @@ class OAuth2ResourceServerAutoConfigurationTests {
JwtDecoder jwtDecoder = context.getBean(JwtDecoder.class);
Object processor = ReflectionTestUtils.getField(jwtDecoder, "jwtProcessor");
Object keySelector = ReflectionTestUtils.getField(processor, "jwsKeySelector");
assertThat(keySelector).hasFieldOrPropertyWithValue("jwsAlg", JWSAlgorithm.RS256);
assertThat(keySelector)
.extracting("jwsAlgs", InstanceOfAssertFactories.iterable(JWSAlgorithm.class))
.containsExactly(JWSAlgorithm.RS256);
});
}
@ -112,7 +115,9 @@ class OAuth2ResourceServerAutoConfigurationTests { @@ -112,7 +115,9 @@ class OAuth2ResourceServerAutoConfigurationTests {
JwtDecoder jwtDecoder = context.getBean(JwtDecoder.class);
Object processor = ReflectionTestUtils.getField(jwtDecoder, "jwtProcessor");
Object keySelector = ReflectionTestUtils.getField(processor, "jwsKeySelector");
assertThat(keySelector).hasFieldOrPropertyWithValue("jwsAlg", JWSAlgorithm.RS384);
assertThat(keySelector)
.extracting("jwsAlgs", InstanceOfAssertFactories.iterable(JWSAlgorithm.class))
.containsExactly(JWSAlgorithm.RS384);
assertThat(getBearerTokenFilter(context)).isNotNull();
});
}

2
spring-boot-project/spring-boot-dependencies/build.gradle

@ -1738,7 +1738,7 @@ bom { @@ -1738,7 +1738,7 @@ bom {
]
}
}
library("Spring Security", "5.3.2.RELEASE") {
library("Spring Security", "5.3.3.RELEASE") {
group("org.springframework.security") {
imports = [
"spring-security-bom"

Loading…
Cancel
Save