Skip to content

Commit 62db842

Browse files
committed
Update com.nimbusds to 9.15
Closes gh-10287
1 parent 86c445f commit 62db842

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dependencies/spring-security-dependencies.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ dependencies {
1818
constraints {
1919
api "ch.qos.logback:logback-classic:1.2.6"
2020
api "com.google.inject:guice:3.0"
21-
api "com.nimbusds:nimbus-jose-jwt:9.11.3"
22-
api "com.nimbusds:oauth2-oidc-sdk:9.12"
21+
api "com.nimbusds:nimbus-jose-jwt:9.12.1"
22+
api "com.nimbusds:oauth2-oidc-sdk:9.15"
2323
api "com.squareup.okhttp3:mockwebserver:3.14.9"
2424
api "com.squareup.okhttp3:okhttp:3.14.9"
2525
api "com.unboundid:unboundid-ldapsdk:4.0.14"

oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt/NimbusJwtDecoderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ public void withJwkSetUriWhenUsingCustomTypeHeaderThenRefuseOmittedType() throws
694694
assertThatExceptionOfType(BadJwtException.class)
695695
.isThrownBy(() -> jwtDecoder.decode(SIGNED_JWT))
696696
.withMessageContaining("An error occurred while attempting to decode the Jwt: "
697-
+ "Required JOSE header \"typ\" (type) parameter is missing");
697+
+ "Required JOSE header typ (type) parameter is missing");
698698
// @formatter:on
699699
}
700700

oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoderTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public void withJwkSetUriWhenUsingCustomTypeHeaderThenRefuseOmittedType() {
359359
.build();
360360
assertThatExceptionOfType(BadJwtException.class)
361361
.isThrownBy(() -> decoder.decode(this.messageReadToken).block())
362-
.havingRootCause().withMessage("Required JOSE header \"typ\" (type) parameter is missing");
362+
.havingRootCause().withMessage("Required JOSE header typ (type) parameter is missing");
363363
// @formatter:on
364364
}
365365

@@ -442,7 +442,7 @@ public void withPublicKeyWhenUsingCustomTypeHeaderThenRefuseOmittedType() throws
442442
.build();
443443
assertThatExceptionOfType(BadJwtException.class)
444444
.isThrownBy(() -> decoder.decode(this.rsa256).block())
445-
.havingRootCause().withMessage("Required JOSE header \"typ\" (type) parameter is missing");
445+
.havingRootCause().withMessage("Required JOSE header typ (type) parameter is missing");
446446
// @formatter:on
447447
}
448448

@@ -486,7 +486,7 @@ public void withJwkSourceWhenUsingCustomTypeHeaderThenRefuseOmittedType() {
486486
assertThatExceptionOfType(BadJwtException.class)
487487
.isThrownBy(() -> decoder.decode(this.messageReadToken).block())
488488
.havingRootCause()
489-
.withMessage("Required JOSE header \"typ\" (type) parameter is missing");
489+
.withMessage("Required JOSE header typ (type) parameter is missing");
490490
// @formatter:on
491491
}
492492

@@ -559,7 +559,7 @@ public void withSecretKeyWhenUsingCustomTypeHeaderThenRefuseOmittedType() {
559559
.build();
560560
assertThatExceptionOfType(BadJwtException.class)
561561
.isThrownBy(() -> decoder.decode(this.messageReadToken).block())
562-
.havingRootCause().withMessage("Required JOSE header \"typ\" (type) parameter is missing");
562+
.havingRootCause().withMessage("Required JOSE header typ (type) parameter is missing");
563563
// @formatter:on
564564
}
565565

0 commit comments

Comments
 (0)