<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 7 April 2016 at 17:36, Chris Pitman <span dir="ltr">&lt;<a href="mailto:cpitman@redhat.com" target="_blank">cpitman@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">Isn&#39;t that documentation for setting up keycloak behind a reverse proxy? I have the keycloak appliance setup already, and can execute an OAuth flow *as long as the redirect_uri passed by the application is correct*.<br></blockquote><div><br></div><div>Yep you&#39;re right, I was a bit hasty with that reply. Sorry.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The problem is that the Keycloak Proxy is passing the wring redirect_uri to keycloak. HTTPD is passing the x-forwarded-proto header to the proxy. And I don&#39;t believe the proxy has a configuration file where you can modify the undertow configuration. The only configuration I am aware of for the proxy is documented here: <a href="http://keycloak.github.io/docs/userguide/keycloak-server/html/proxy.html#d4e3464" rel="noreferrer" target="_blank">http://keycloak.github.io/docs/userguide/keycloak-server/html/proxy.html#d4e3464</a></blockquote><div><br></div><div>Can&#39;t really help you there, I&#39;ve got no clue about the Keycloak Proxy</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Am I missing something?<br>
<div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
&gt; <a href="http://keycloak.github.io/docs/userguide/keycloak-server/html/server-installation.html#d4e397" rel="noreferrer" target="_blank">http://keycloak.github.io/docs/userguide/keycloak-server/html/server-installation.html#d4e397</a><br>
&gt;<br>
&gt; On 7 April 2016 at 06:24, Chris Pitman &lt;<a href="mailto:cpitman@redhat.com">cpitman@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hey everyone,<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m trying to setup Keycloak Proxy to protect access to a legacy<br>
&gt; &gt; application. Right now we have HTTPD setup as a reverse proxy that<br>
&gt; &gt; terminates TLS and then passes through the request via HTTP to the legacy<br>
&gt; &gt; app. What I want to do is put the Keycloak Proxy in between HTTPD and the<br>
&gt; &gt; app.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;ve got it running, but the problem is the URL the proxy passes as the<br>
&gt; &gt; redirect url to keycloak. It is passing an &quot;http://&quot; url, which then<br>
&gt; &gt; doesn&#39;t match the configured redirect_urls in Keycloak. I&#39;m assuming it<br>
&gt; &gt; does this since I&#39;m using the HTTP port on the proxy.<br>
&gt; &gt;<br>
&gt; &gt; How can I get Keycloak Proxy to pass a redirect url with a &quot;https://&quot;<br>
&gt; &gt; scheme, even when not connecting via https to the proxy itself?<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Chris Pitman<br>
&gt; &gt; Architect, Red Hat Consulting<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; keycloak-user mailing list<br>
&gt; &gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt; &gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div></div>