<div dir="ltr"><div>I have tried &quot;disable-trust-manager&quot;: true, but did not worked. I still get the &quot;403 - Forbidden&quot;.</div><div>I tried also to set the &quot;truststore&quot; : &quot;path/to/truststore.jks&quot; and &quot;truststore-password&quot; : &quot;pass&quot; and also did not worked. </div><div>The only thing that has worked is to deploy it with a wildfly without the SSL enabled.</div><div>Is there another thing I can try, to make it worked with a domain wildfly with SSL enabled?</div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 24, 2014 at 2:29 AM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The options you&#39;re after are truststore, truststore-password and disable-trust-manager, not client-keystore.<br>
<span class="im HOEnZb"><br>
----- Original Message -----<br>
&gt; From: &quot;Fabián Silva&quot; &lt;<a href="mailto:afsg77@gmail.com">afsg77@gmail.com</a>&gt;<br>
</span><span class="im HOEnZb">&gt; To: &quot;Stian Thorgersen&quot; &lt;<a href="mailto:stian@redhat.com">stian@redhat.com</a>&gt;<br>
&gt; Cc: &quot;Stan Silvert&quot; &lt;<a href="mailto:ssilvert@redhat.com">ssilvert@redhat.com</a>&gt;, <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; Sent: Saturday, 22 November, 2014 12:58:16 AM<br>
&gt; Subject: Re: [keycloak-user] Error on application log in<br>
&gt;<br>
</span><div class="HOEnZb"><div class="h5">&gt; <a href="http://docs.jboss.org/keycloak/docs/1.1.0.Beta1/userguide/html/ch07.html#adapter-config" target="_blank">http://docs.jboss.org/keycloak/docs/1.1.0.Beta1/userguide/html/ch07.html#adapter-config</a><br>
&gt; &quot;client-keystore<br>
&gt; Not supported yet, but we will support in future versions.&quot;<br>
&gt; So if my adapter has SSL enabled is not supported yet? Or how do I<br>
&gt; configure it to work if my adapter has the SSL enabled?<br>
&gt; I tried with an adapter without SSL enabled and the keycloak with the SSL<br>
&gt; enabled and it worked. But when I tried it with both, the adapter and the<br>
&gt; keycloak with SSL enabled, it doesn&#39;t work. I got the following logs on the<br>
&gt; adapter:<br>
&gt; ERROR [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-6)<br>
&gt; failed to turn code into token<br>
&gt; ERROR [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-6)<br>
&gt; status from server: 404<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt; On Thu, Nov 20, 2014 at 2:25 AM, Stian Thorgersen &lt;<a href="mailto:stian@redhat.com">stian@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Are there no errors or warning in the server log? Try enabling debug for<br>
&gt; &gt; org.keycloak and see if there&#39;s anything interesting.<br>
&gt; &gt;<br>
&gt; &gt; First thing try the exact same setup (two servers), but without ssl.<br>
&gt; &gt;<br>
&gt; &gt; If that works disable enable ssl, but disable the trust manager in the<br>
&gt; &gt; adapter (disable-trust-manager option on adapter, see<br>
&gt; &gt; <a href="http://docs.jboss.org/keycloak/docs/1.1.0.Beta1/userguide/html/ch07.html#adapter-config" target="_blank">http://docs.jboss.org/keycloak/docs/1.1.0.Beta1/userguide/html/ch07.html#adapter-config</a><br>
&gt; &gt; ).<br>
&gt; &gt;<br>
&gt; &gt; If it still works create a truststore and import your certificate. Then<br>
&gt; &gt; set truststore and truststore-password on the adapter.<br>
&gt; &gt;<br>
&gt; &gt; ----- Original Message -----<br>
&gt; &gt; &gt; From: &quot;Fabián Silva&quot; &lt;<a href="mailto:afsg77@gmail.com">afsg77@gmail.com</a>&gt;<br>
&gt; &gt; &gt; To: &quot;Stan Silvert&quot; &lt;<a href="mailto:ssilvert@redhat.com">ssilvert@redhat.com</a>&gt;<br>
&gt; &gt; &gt; Cc: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; Sent: Wednesday, 19 November, 2014 6:35:15 PM<br>
&gt; &gt; &gt; Subject: Re: [keycloak-user] Error on application log in<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I tried deploying it onto a local wildfly in domain without the SSL<br>
&gt; &gt; enabled<br>
&gt; &gt; &gt; and it worked. What I can&#39;t figure it out is why the SSL is causing<br>
&gt; &gt; conflict<br>
&gt; &gt; &gt; and how to solve this, I can&#39;t simply disable the SSL.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Wed, Nov 19, 2014 at 11:28 AM, Stan Silvert &lt; <a href="mailto:ssilvert@redhat.com">ssilvert@redhat.com</a> &gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Have you tried it using the two servers but without SSL?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; You can set ssl-required to &quot;none&quot; on the adapter (application) side.<br>
&gt; &gt; Also on<br>
&gt; &gt; &gt; the Keycloak server side, try setting Access Type to &quot;public&quot;. Do one of<br>
&gt; &gt; &gt; those at a time and see if either causes it to work. That might narrow it<br>
&gt; &gt; &gt; down a bit.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 11/19/2014 11:29 AM, Fabián Silva wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; I&#39;m running out of ideas in here. In simple terms I got a Wildfly<br>
&gt; &gt; running on<br>
&gt; &gt; &gt; domain on a server and a keycloak on another server. I set the adapters<br>
&gt; &gt; on<br>
&gt; &gt; &gt; my wildfly and deploy, to this wildfly, a web app that uses keycloak.<br>
&gt; &gt; When I<br>
&gt; &gt; &gt; try to access the web app it displays the keycloak login, it validates<br>
&gt; &gt; the<br>
&gt; &gt; &gt; users ok, but when you access with a correct user and password it shows<br>
&gt; &gt; the<br>
&gt; &gt; &gt; &quot;403 - Forbidden&quot;. At first I thought it was some issue with the roles,<br>
&gt; &gt; but<br>
&gt; &gt; &gt; that didn&#39;t fix it.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Fri, Nov 14, 2014 at 10:20 AM, Fabián Silva &lt; <a href="mailto:afsg77@gmail.com">afsg77@gmail.com</a> &gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; It is already set to use the absolute path. And the keycloak is working<br>
&gt; &gt; when<br>
&gt; &gt; &gt; I deploy the application to my local wildfly domain. The issue is when I<br>
&gt; &gt; try<br>
&gt; &gt; &gt; to deploy to another wildfly in domain mode on a separate server. The<br>
&gt; &gt; &gt; application is the same and the only difference I can tell from the two<br>
&gt; &gt; &gt; wildflys is that the local don&#39;t have the SSL/HTTPS enabled. I have the<br>
&gt; &gt; &gt; keycloak adapter set in both domains.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I&#39;m trying to trace those errors on the keycloak code to try to<br>
&gt; &gt; understand<br>
&gt; &gt; &gt; what is happening, but I haven&#39;t been so lucky with this.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards<br>
&gt; &gt; &gt; Alejandro Fabián Silva Grifé<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Fri, Nov 14, 2014 at 2:27 AM, Marek Posolda &lt; <a href="mailto:mposolda@redhat.com">mposolda@redhat.com</a> &gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; it failed on the adapter (application) side and error 404 means &quot;Not<br>
&gt; &gt; found&quot;.<br>
&gt; &gt; &gt; So adapter can&#39;t find the keycloak server to turn code into token. Make<br>
&gt; &gt; sure<br>
&gt; &gt; &gt; to configure &quot;auth-server-url&quot; in keycloak.json for your application<br>
&gt; &gt; &gt; properly. If relative uri doesn&#39;t work for some reason, you can rather<br>
&gt; &gt; try<br>
&gt; &gt; &gt; to use absolute uri for auth-server-url like &quot;<br>
&gt; &gt; <a href="https://localhost:8443/auth" target="_blank">https://localhost:8443/auth</a>&quot; .<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Marek<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 14.11.2014 01:31, Fabián Silva wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I have a keycloak installed on wildfly standalone. I&#39;m trying to deploy<br>
&gt; &gt; an<br>
&gt; &gt; &gt; application, that use this keycloak, on a separate server with wilflly<br>
&gt; &gt; &gt; running on domain mode. I tried first to deploy on a domain out of the<br>
&gt; &gt; box<br>
&gt; &gt; &gt; on my local machine, setting the<br>
&gt; &gt; keycloak-wildfly-adapter-dist-1.0.4.Final.<br>
&gt; &gt; &gt; It deploys fine and does the authentication without any issues. When I<br>
&gt; &gt; try<br>
&gt; &gt; &gt; to migrate it to the server running my wilfly (also in domain mode and<br>
&gt; &gt; the<br>
&gt; &gt; &gt; keycloak adapter set), it deploys fine and shows the keycloak login once<br>
&gt; &gt; you<br>
&gt; &gt; &gt; enter the application. But the problem is that when you login it<br>
&gt; &gt; displays a<br>
&gt; &gt; &gt; &quot;403 - Forbidden&quot; and on the log I&#39;m seeing<br>
&gt; &gt; &gt; ERROR [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-6)<br>
&gt; &gt; &gt; failed to turn code into token<br>
&gt; &gt; &gt; ERROR [org.keycloak.adapters.OAuthRequestAuthenticator] (default task-6)<br>
&gt; &gt; &gt; status from server: 404<br>
&gt; &gt; &gt; The only difference between those two wildfly domain mode is that in the<br>
&gt; &gt; &gt; local I don&#39;t have the the SSL/HTTPS enabled.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Have anyone seen this error? or have an idea of what this could be?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; keycloak-user mailing list <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; keycloak-user mailing list <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; keycloak-user mailing list<br>
&gt; &gt; &gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; keycloak-user mailing list<br>
&gt; &gt; &gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt; &gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>