Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Minor

Christian Bauer96459d1f6541
diff --git a/container/src/main/java/org/openremote/container/security/IdentityService.java b/container/src/main/java/org/openremote/container/security/IdentityService.java
index 3d4b4030a..3a4e0f70c 100644
--- a/container/src/main/java/org/openremote/container/security/IdentityService.java
+++ b/container/src/main/java/org/openremote/container/security/IdentityService.java
@@ -126,7 +126,7 @@ public class IdentityService implements ContainerService {
// the Host header. Keycloak will verify token issuer name based on this, so it must match the external host
// and port that was used to obtain the token.
ResteasyClientBuilder clientBuilder =
- new ProxyWebClientBuilder(externalAuthServerUri.getHost(), -1)
+ new ProxyWebClientBuilder(externalAuthServerUri.getHost(), externalAuthServerUri.getPort())
.establishConnectionTimeout(
container.getConfigInteger(KEYCLOAK_CONNECT_TIMEOUT, KEYCLOAK_CONNECT_TIMEOUT_DEFAULT),
TimeUnit.MILLISECONDS