From c16cfe969626ebcd60fa5f6c2ff87ab1c721c145 Mon Sep 17 00:00:00 2001 From: stianst Date: Mon, 14 Oct 2019 19:58:56 +0200 Subject: [PATCH] Fixes for Quarkus --- quarkus/extensions/pom.xml | 1 + quarkus/server/pom.xml | 258 +++++++++++++++--- .../src/main/resources/application.properties | 2 +- .../resources/account/AccountFormService.java | 2 +- 4 files changed, 229 insertions(+), 34 deletions(-) diff --git a/quarkus/extensions/pom.xml b/quarkus/extensions/pom.xml index d7a29b8c7e..dcf3819fbe 100644 --- a/quarkus/extensions/pom.xml +++ b/quarkus/extensions/pom.xml @@ -10,6 +10,7 @@ 4.0.0 + Keycloak Quarkus Extensions keycloak-quarkus-extensions diff --git a/quarkus/server/pom.xml b/quarkus/server/pom.xml index 8d321456b0..955875b635 100644 --- a/quarkus/server/pom.xml +++ b/quarkus/server/pom.xml @@ -10,6 +10,7 @@ 4.0.0 + Keycloak Quarkus Server keycloak-quarkus-server @@ -34,16 +35,6 @@ io.quarkus quarkus-jdbc-mariadb - - io.quarkus - quarkus-junit5 - test - - - io.rest-assured - rest-assured - test - @@ -55,16 +46,8 @@ keycloak-services - org.jboss.resteasy - resteasy-jaxrs - - - org.jboss.resteasy - resteasy-multipart-provider - - - org.jboss.resteasy - resteasy-jackson2-provider + * + * @@ -81,73 +64,206 @@ org.keycloak keycloak-common + + + * + * + + org.keycloak keycloak-core + + + * + * + + org.keycloak keycloak-server-spi + + + * + * + + org.keycloak keycloak-server-spi-private + + + * + * + + org.keycloak keycloak-themes + + + * + * + + org.keycloak keycloak-saml-core-public + + + * + * + + org.keycloak keycloak-saml-core + + + * + * + + org.keycloak keycloak-model-jpa + + + * + * + + org.keycloak keycloak-model-infinispan + + + * + * + + org.keycloak keycloak-authz-policy-common + + + * + * + + org.keycloak keycloak-kerberos-federation + + + * + * + + org.keycloak keycloak-sssd-federation + + + * + * + + org.keycloak keycloak-ldap-federation + + + * + * + + + + com.webauthn4j + webauthn4j-core + + + * + * + + + + + com.webauthn4j + webauthn4j-util + + + * + * + + + + + com.fasterxml.jackson.dataformat + jackson-dataformat-cbor + + + * + * + + + org.freemarker freemarker + + + * + * + + com.google.guava guava + + + * + * + + com.googlecode.owasp-java-html-sanitizer owasp-java-html-sanitizer + + + * + * + + org.liquibase liquibase-core + + + * + * + + + javax.persistence javax.persistence-api @@ -159,15 +275,44 @@ org.apache.httpcomponents httpcore + + + * + * + + org.apache.httpcomponents httpclient + + + * + * + + org.bouncycastle bcpkix-jdk15on + + + * + * + + + + org.bouncycastle + bcprov-jdk15on + + + * + * + + + + org.infinispan infinispan-core @@ -177,38 +322,87 @@ org.infinispan infinispan-commons ${infinispan.version} + + + * + * + + org.infinispan infinispan-client-hotrod ${infinispan.version} - - - org.jboss.resteasy - resteasy-core - org.jboss.resteasy - resteasy-core-spi + * + * - org.jboss.resteasy - resteasy-jaxb-provider + org.infinispan + infinispan-cachestore-remote + ${infinispan.version} + + + * + * + + - org.jboss.resteasy - resteasy-jackson2-provider + com.github.ua-parser + uap-java + + + * + * + + - org.jboss.resteasy - resteasy-core-spi + org.yaml + snakeyaml + 1.20 + + + * + * + + + + com.google.zxing + core + + + * + * + + + + + com.google.zxing + javase + + + * + * + + + + org.wildfly.common wildfly-common ${wildfly.common.formmat.version} + + + * + * + + diff --git a/quarkus/server/src/main/resources/application.properties b/quarkus/server/src/main/resources/application.properties index c06cf26221..9e9215869f 100644 --- a/quarkus/server/src/main/resources/application.properties +++ b/quarkus/server/src/main/resources/application.properties @@ -2,4 +2,4 @@ quarkus.servlet.context-path = /auth -resteasy.disable.html.sanitizer = true +resteasy.disable.html.sanitizer = true \ No newline at end of file diff --git a/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java b/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java index 6f7d4435e7..8ec8d43c4d 100755 --- a/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java +++ b/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java @@ -200,7 +200,7 @@ public class AccountFormService extends AbstractSecuredLocalService { UserSessionModel userSession = auth.getSession(); - String tabId = request.getUri().getQueryParameters().getFirst(org.keycloak.models.Constants.TAB_ID); + String tabId = session.getContext().getUri().getQueryParameters().getFirst(org.keycloak.models.Constants.TAB_ID); if (tabId != null) { AuthenticationSessionModel authSession = new AuthenticationSessionManager(session).getAuthenticationSessionByIdAndClient(realm, userSession.getId(), client, tabId); if (authSession != null) {