Skip to content

Commit 8daf57f

Browse files
committed
Upgrade to Spring Security 5.4.0
The commit also includes an upgrade to Nimbus JOSE JWT 9.0. Spring Security requires 9.0 and it is not backwards compatible with 8.19. Closes gh-23225 Closes gh-23242
1 parent 6619dfa commit 8daf57f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ClientProperties.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ public static class Registration {
105105
private String redirectUri;
106106

107107
/**
108-
* Authorization scopes. May be left blank when using a pre-defined provider.
108+
* Authorization scopes. When left blank the provider's default scopes, if any,
109+
* will be used.
109110
*/
110111
private Set<String> scope;
111112

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ClientPropertiesRegistrationAdapterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ private void testIssuerConfiguration(OAuth2ClientProperties.Registration registr
309309
assertThat(adapted.getAuthorizationGrantType()).isEqualTo(AuthorizationGrantType.AUTHORIZATION_CODE);
310310
assertThat(adapted.getRegistrationId()).isEqualTo("okta");
311311
assertThat(adapted.getClientName()).isEqualTo(issuer);
312-
assertThat(adapted.getScopes()).containsOnly("openid");
312+
assertThat(adapted.getScopes()).isNull();
313313
assertThat(providerDetails.getAuthorizationUri()).isEqualTo("https://example.com/o/oauth2/v2/auth");
314314
assertThat(providerDetails.getTokenUri()).isEqualTo("https://example.com/oauth2/v4/token");
315315
assertThat(providerDetails.getJwkSetUri()).isEqualTo("https://example.com/oauth2/v3/certs");

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ bom {
12051205
]
12061206
}
12071207
}
1208-
library("Nimbus JOSE JWT", "8.19") {
1208+
library("Nimbus JOSE JWT", "9.0") {
12091209
group("com.nimbusds") {
12101210
modules = [
12111211
"nimbus-jose-jwt"
@@ -1623,7 +1623,7 @@ bom {
16231623
]
16241624
}
16251625
}
1626-
library("Spring Security", "5.4.0-RC1") {
1626+
library("Spring Security", "5.4.0") {
16271627
group("org.springframework.security") {
16281628
imports = [
16291629
"spring-security-bom"

0 commit comments

Comments
 (0)