<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>During the last phase of OAuth negotation the client application (here: wildfly) will contact the oauth server (here: keycloak) to change the code into a token.</div>
<div> </div>
<div>In order to work the client application (here: wildfly) must be able to contact the keycloak server using the auth-server-url given in keycloak.json.</div>
<div> </div>
<div>If this URL is only accessible browsers from external / via a load balancer, and client application should use a different (direct) URL to reach the keycloak server you can specify auth-server-url-for-backend-requests in your keycloak.json</div>
<div> </div>
<div>Best regards,</div>
<div>Alexander</div>
</div>
<div class="signature">--<br/>
Alexander Schwartz (alexander.schwartz@gmx.net)<br/>
http://www.ahus1.de</div>
<div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch, 20. Januar 2016 um 05:23 Uhr<br/>
<b>Von:</b> "Mai Zi" <ornot2008@yahoo.com><br/>
<b>An:</b> Keycloak-user <keycloak-user@lists.jboss.org><br/>
<b>Betreff:</b> [keycloak-user] What can bring this error "failed to turn code into token" over and over again?</div>
<div name="quoted-content">
<div style="color: rgb(0,0,0);background-color: rgb(255,255,255);font-family: garamond , new york , times , serif;font-size: 14.0px;">
<div id="yui_3_16_0_1_1453262753340_2506">We get lots of errors like this:</div>
<div id="yui_3_16_0_1_1453262753340_2506"> </div>
<div id="yui_3_16_0_1_1453262753340_2506">2016-01-20 12:02:37,441 ERROR [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-1) failed to turn code into token: java.net.SocketException: Connection timed out</div>
<div id="yui_3_16_0_1_1453262753340_2506"> </div>
<div id="yui_3_16_0_1_1453262753340_2506"> </div>
<div id="yui_3_16_0_1_1453262753340_2506">and which makes the login slow or failed .</div>
<div id="yui_3_16_0_1_1453262753340_2506"> </div>
<div id="yui_3_16_0_1_1453262753340_2506"> </div>
<div id="yui_3_16_0_1_1453262753340_2506">We are using keycloak 1.7.0 final and broke a SAML 2.0 IDP (ADFS). The wildfly app server and keycloak both are standalone. </div>
<div id="yui_3_16_0_1_1453262753340_2506"> </div>
<div id="yui_3_16_0_1_1453262753340_2506"> </div>
</div>
</div>
</div>
</div>
</div></div></body></html>