diff --git a/build.gradle.kts b/build.gradle.kts index 32900b0e..958e2a2b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,21 +1,21 @@ import java.time.Duration import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask -val assertjVersion = "3.25.2" +val assertjVersion = "3.25.3" val kotlinLoggingVersion = "3.0.5" val logbackVersion = "1.4.14" -val nimbusSdkVersion = "11.7" +val nimbusSdkVersion = "11.9.1" val mockWebServerVersion = "4.12.0" val jacksonVersion = "2.16.1" -val nettyVersion = "4.1.106.Final" -val junitJupiterVersion = "5.10.1" +val nettyVersion = "4.1.107.Final" +val junitJupiterVersion = "5.10.2" val kotlinVersion = "1.9.22" val freemarkerVersion = "2.3.32" val kotestVersion = "5.8.0" val bouncyCastleVersion = "1.70" -val springBootVersion = "3.2.0" +val springBootVersion = "3.2.2" val reactorTestVersion = "3.6.2" -val ktorVersion = "2.3.7" +val ktorVersion = "2.3.8" val mavenRepoBaseUrl = "https://oss.sonatype.org" val mainClassKt = "no.nav.security.mock.oauth2.StandaloneMockOAuth2ServerKt" diff --git a/src/test/java/examples/java/springboot/login/OAuth2LoginAppTest.java b/src/test/java/examples/java/springboot/login/OAuth2LoginAppTest.java index 4cf3f82d..eddd883b 100644 --- a/src/test/java/examples/java/springboot/login/OAuth2LoginAppTest.java +++ b/src/test/java/examples/java/springboot/login/OAuth2LoginAppTest.java @@ -78,7 +78,8 @@ public void oidcUserFooShouldBeLoggedIn() { private ClientHttpConnector followRedirectsWithCookies(Map cookieManager) { return new ReactorClientHttpConnector( - HttpClient.create() + HttpClient + .create() .followRedirect((req, resp) -> { for (var entry : resp.cookies().entrySet()) { var cookie = entry.getValue().stream().findFirst().orElse(null); @@ -90,7 +91,7 @@ private ClientHttpConnector followRedirectsWithCookies(Map cooki }, req -> { for (var cookie : cookieManager.entrySet()) { - req.addCookie(cookie.getValue()); + req.header("Cookie", cookie.getKey() + "=" + cookie.getValue().value()); } } )