From 851401c40a4e4e5dfe99c9583d018cf1f68456e0 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Mon, 20 Jan 2014 19:30:07 +0000 Subject: [PATCH 1/2] Update link to WildFly doc for tuning sockets to point to Undertow docs --- docbook/reference/en/en-US/modules/server-installation.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docbook/reference/en/en-US/modules/server-installation.xml b/docbook/reference/en/en-US/modules/server-installation.xml index c6b253c50c..3a0d57bcb9 100755 --- a/docbook/reference/en/en-US/modules/server-installation.xml +++ b/docbook/reference/en/en-US/modules/server-installation.xml @@ -332,7 +332,7 @@ $ keytool -import -alias yourdomain -keystore keycloak.jks -file your-certificat - Check the Wildfly documentation for more information on fine tuning the socket connections. + Check the Wildfly Undertow documentation for more information on fine tuning the socket connections.
From e92980b77671994c5fe28b724f9567691c208153 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Mon, 20 Jan 2014 19:31:02 +0000 Subject: [PATCH 2/2] Simplified check for ssl, since x-forward is sorted by Undertow --- .../org/keycloak/services/resources/TokenService.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/services/src/main/java/org/keycloak/services/resources/TokenService.java b/services/src/main/java/org/keycloak/services/resources/TokenService.java index 2ce30a524d..6871b9f897 100755 --- a/services/src/main/java/org/keycloak/services/resources/TokenService.java +++ b/services/src/main/java/org/keycloak/services/resources/TokenService.java @@ -637,15 +637,7 @@ public class TokenService { return true; } - if (uriInfo.getBaseUri().getScheme().equals("https")) { - return true; - } - - if ("https".equals(headers.getHeaderString("X-Forwarded-Proto"))) { - return true; - } - - return false; + return uriInfo.getBaseUri().getScheme().equals("https"); } }