From 8ed355a5fefb0d0b4097bc68ea81010e8aead8e2 Mon Sep 17 00:00:00 2001 From: Thomas Kuestermann Date: Fri, 21 Feb 2020 17:39:19 +0100 Subject: [PATCH] KEYCLOAK-12749 single worker/IO thread, use OAUTH2 constants --- .../adapters/installed/KeycloakInstalled.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/adapters/oidc/installed/src/main/java/org/keycloak/adapters/installed/KeycloakInstalled.java b/adapters/oidc/installed/src/main/java/org/keycloak/adapters/installed/KeycloakInstalled.java index 8f0f030875..9188ee6df2 100644 --- a/adapters/oidc/installed/src/main/java/org/keycloak/adapters/installed/KeycloakInstalled.java +++ b/adapters/oidc/installed/src/main/java/org/keycloak/adapters/installed/KeycloakInstalled.java @@ -610,10 +610,6 @@ public class KeycloakInstalled { return sb.toString(); } - KeycloakInstalled(int i) { - - } - class CallbackListener implements HttpHandler { private final CountDownLatch shutdownSignal = new CountDownLatch(1); @@ -631,8 +627,11 @@ public class KeycloakInstalled { gracefulShutdownHandler = Handlers.gracefulShutdown(allowedMethodsHandler); server = Undertow.builder() + .setIoThreads(1) + .setWorkerThreads(1) .addHttpListener(0, "localhost") - .setHandler(gracefulShutdownHandler).build(); + .setHandler(gracefulShutdownHandler) + .build(); server.start(); } @@ -669,7 +668,7 @@ public class KeycloakInstalled { private void readQueryParameters(HttpServerExchange exchange) { code = getQueryParameterIfPresent(exchange, OAuth2Constants.CODE); error = getQueryParameterIfPresent(exchange, OAuth2Constants.ERROR); - errorDescription = getQueryParameterIfPresent(exchange, "error-description"); + errorDescription = getQueryParameterIfPresent(exchange, OAuth2Constants.ERROR_DESCRIPTION); state = getQueryParameterIfPresent(exchange, OAuth2Constants.STATE); }