From d77f10eb5eed28f473b4bd299401c9a84f9d80c7 Mon Sep 17 00:00:00 2001 From: Kai Helbig Date: Fri, 20 May 2022 12:10:09 +0200 Subject: [PATCH] upgrade to vertx 4.3 Sadly, this also requires a Spring boot upgrade in the example project because vertx 4.3 is incompatible with any project using the Spring Boot BOM < 2.6.4 due to its requirement of having netty >= 4.1.74 on the classpath. fixes #122 Signed-off-by: Kai Helbig --- build.gradle | 2 +- example-backend/build.gradle | 2 +- .../java/com/tngtech/keycloakmock/impl/dagger/ServerModule.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index c8aff5f..decf8fc 100644 --- a/build.gradle +++ b/build.gradle @@ -52,7 +52,7 @@ ext { picocli_version = '4.6.2' restassured_version = '4.4.0' slf4j_version = '1.7.33' - vertx_version = '4.2.3' + vertx_version = '4.3.0' license_name = 'The Apache License, Version 2.0' license_url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' diff --git a/example-backend/build.gradle b/example-backend/build.gradle index 2596a36..42523cb 100644 --- a/example-backend/build.gradle +++ b/example-backend/build.gradle @@ -1,6 +1,6 @@ buildscript { ext { - springBootVersion = '2.6.2' + springBootVersion = '2.6.7' } repositories { mavenCentral() diff --git a/mock/src/main/java/com/tngtech/keycloakmock/impl/dagger/ServerModule.java b/mock/src/main/java/com/tngtech/keycloakmock/impl/dagger/ServerModule.java index a88a378..594f688 100644 --- a/mock/src/main/java/com/tngtech/keycloakmock/impl/dagger/ServerModule.java +++ b/mock/src/main/java/com/tngtech/keycloakmock/impl/dagger/ServerModule.java @@ -150,8 +150,8 @@ Router provideRouter( .handler(authenticationRoute); router .post(routing.getTokenEndpoint().getPath()) - .handler(basicAuthHandler) .handler(BodyHandler.create()) + .handler(basicAuthHandler) .handler(tokenRoute); router.get(routing.getOpenIdPath("login-status-iframe.html*").getPath()).handler(iframeRoute); router