AnsweredAssumed Answered

Failed to obtain public key for KeyCloak configuration for api componen

Question asked by fin_infra578084 on Sep 25, 2018

Morning, wondering if any expert out there what is the problem below? We are currently using external authentication ( OKTA) to authenticate our API but received below error. Many thanks for help.

 

Sep 26, 2018 10:47:24 AM SGT SEVERE [com.boomi.connector.wss.security.keycloak.KeycloakDeploymentStore create] Failed to obtain public key for KeyCloak configuration for api component 25467e71-aef2-416a-9a2d-92d625291ecb
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:532)
at org.keycloak.adapters.SniSSLSocketFactory.connectSocket(SniSSLSocketFactory.java:109)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:409)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at com.boomi.connector.wss.security.keycloak.KeyCloakAdapterUtil.obtainRealmKey(KeyCloakAdapterUtil.java:71)
at com.boomi.connector.wss.security.keycloak.KeycloakDeploymentStore.create(KeycloakDeploymentStore.java:53)
at com.boomi.connector.wss.security.keycloak.KeycloakDeploymentStore.create(KeycloakDeploymentStore.java:31)
at com.boomi.container.util.AbstractStore.getOrCreate(AbstractStore.java:26)
at com.boomi.connector.wss.security.keycloak.ConfigResolver.resolve(ConfigResolver.java:56)
at org.keycloak.adapters.AdapterDeploymentContext.resolveDeployment(AdapterDeploymentContext.java:88)
at com.boomi.connector.wss.security.keycloak.KeyCloakUserRealm.authenticate(KeyCloakUserRealm.java:103)
at com.boomi.connector.wss.security.keycloak.KeyCloakAuthenticator.authenticate(KeyCloakAuthenticator.java:30)
at com.boomi.connector.server.http.security.StandardSecurityHandler$CORSAuthenticator.authenticate(StandardSecurityHandler.java

Outcomes