<div dir="ltr"><div><div>Hello<br><br></div>I'm reciving error when I try login to our application: ClientProtocolException: URI does not specify a valid host name: https:/auth/realms/Brandpath/protocol/openid-connect/token<br></div>Http protocol is working fine, no errors, but using https I recive each time uri without host name.<br><div>Auth page is working fine.<br><div><br></div><div>What can cause that error ?<br></div><div><br><br>14:59:22,937 ERROR [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-2) failed to turn code into token: org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: https:/auth/realms/Brandpath/protocol/openid-connect/token<br>[Server:ms-server1] at org.apache.http.impl.client.CloseableHttpClient.determineTarget(CloseableHttpClient.java:94)<br>[Server:ms-server1] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)<br>[Server:ms-server1] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)<br>[Server:ms-server1] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)<br>[Server:ms-server1] at org.keycloak.adapters.ServerRequest.invokeAccessCodeToToken(ServerRequest.java:107)<br>[Server:ms-server1] at org.keycloak.adapters.OAuthRequestAuthenticator.resolveCode(OAuthRequestAuthenticator.java:314)<br>[Server:ms-server1] at org.keycloak.adapters.OAuthRequestAuthenticator.authenticate(OAuthRequestAuthenticator.java:260)<br>[Server:ms-server1] at org.keycloak.adapters.RequestAuthenticator.authenticate(RequestAuthenticator.java:112)<br>[Server:ms-server1] at org.keycloak.adapters.undertow.AbstractUndertowKeycloakAuthMech.keycloakAuthenticate(AbstractUndertowKeycloakAuthMech.java:110)<br>[Server:ms-server1] at org.keycloak.adapters.undertow.ServletKeycloakAuthMech.authenticate(ServletKeycloakAuthMech.java:92)<br>[Server:ms-server1] at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:233)<br>[Server:ms-server1] at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:250)<br>[Server:ms-server1] at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:219)<br>[Server:ms-server1] at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:121)<br>[Server:ms-server1] at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:96)<br>[Server:ms-server1] at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:89)<br>[Server:ms-server1] at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:55)<br>[Server:ms-server1] at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)<br>[Server:ms-server1] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<br>[Server:ms-server1] at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)<br>[Server:ms-server1] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)<br>[Server:ms-server1] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)<br>[Server:ms-server1] at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)<br>[Server:ms-server1] at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)<br>[Server:ms-server1] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)<br>[Server:ms-server1] at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)<br>[Server:ms-server1] at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)<br>[Server:ms-server1] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<br>[Server:ms-server1] at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)<br>[Server:ms-server1] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<br>[Server:ms-server1] at org.wildfly.mod_cluster.undertow.metric.RunningRequestsHttpHandler.handleRequest(RunningRequestsHttpHandler.java:69)<br>[Server:ms-server1] at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)<br>[Server:ms-server1] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<br>[Server:ms-server1] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)<br>[Server:ms-server1] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)<br>[Server:ms-server1] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)<br>[Server:ms-server1] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)<br>[Server:ms-server1] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)<br>[Server:ms-server1] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)<br>[Server:ms-server1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br>[Server:ms-server1] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br>[Server:ms-server1] at java.lang.Thread.run(Thread.java:745)<br><br clear="all"><div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><i><br>regards</i></div><div><i>--</i></div><i>Emil Posmyk<br></i></div></div>
</div></div></div></div>