<div dir="ltr">Hi Bill,<div><br></div><div>Thank your for your answer, but I still don&#39;t seem to get Keycloak to &quot;catch&quot; my requests against the protected application.</div><div>Let me make the scenario clear:</div><div><br></div><div>1. Application to be protected runs on <a href="http://localhost">http://localhost</a>:<b>8280</b>/backend</div><div><br></div><div>2. Server proxy started and runs on <a href="http://localhost">http://localhost</a>:<b>8080</b>, when I type <a href="http://localhost:8080/backend">http://localhost:8080/backend</a> in the browser I see the protected application</div><div><br></div><div>3. Keycloak server runs on <a href="http://localhost">http://localhost</a>:<b>8180</b>/auth </div><div><br></div><div><div>4. The adapter config in the &quot;applications&quot; section corresponds now the proxy client I have  configured in the Keycloak realm:</div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">Client ID: proxy</blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">Client Protocol: openid-connect<br>Access Type: confidential<br>Valid Redirect URIs: <a href="http://localhost:8080/backend/*">http://localhost:8080/backend/*</a></blockquote></div></div><div><br></div><div>I am not sure how to configure the proxy Server - now I have the following:</div><div><div>{</div><div>    &quot;target-url&quot;: &quot;<b><a href="http://localhost:8280/">http://localhost:8280/</a></b>&quot;, ???</div><div>    &quot;send-access-token&quot;: false,</div><div>    &quot;bind-address&quot;: &quot;localhost&quot;,</div><div>    &quot;http-port&quot;: &quot;8080&quot;, ???</div><div>    &quot;applications&quot;: [</div><div>        {</div><div>            &quot;base-path&quot;: &quot;<b>/backend</b>&quot;,</div><div>            &quot;error-page&quot;: &quot;/error.html&quot;,</div><div>            &quot;adapter-config&quot;: {</div><div>                &quot;realm&quot;: &quot;demo&quot;,</div><div>                &quot;resource&quot;: &quot;<b>proxy</b>&quot;,</div><div>                &quot;realm-public-key&quot;: &quot;MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB&quot;,</div><div>                &quot;auth-server-url&quot;: &quot;<a href="http://localhost:8180/auth">http://localhost:8180/auth</a>&quot;,</div><div>                &quot;ssl-required&quot; : &quot;external&quot;,</div><div>                &quot;principal-attribute&quot;: &quot;name&quot;,</div><div>                &quot;credentials&quot;: {</div><div>                    &quot;secret&quot;: &quot;4ef4196d-9e86-4795-9219-dc1288b87c2b&quot;</div><div>                }</div><div>            }</div><div>            </div><div>        }</div><div>    ]</div><div>}</div></div><div>Questions:</div><div>1. The target-url I set it to the URL of the application the proxy server is proxying - this means the server can only proxy applications on the same URL?</div><div>2. What am I doing wrong :((((?</div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"></blockquote></div><div><br></div><div>Thanks a bunch,</div><div>Adrian</div><div><br></div><div>&quot;Can&#39;t really see the screenshot, but you have to point keycloak to the<br>host/port of the proxy.<br><br>On 11/19/2015 9:13 AM, Adrian Matei wrote:<br>&gt; Hi everyone,<br>&gt;<br>&gt; I am trying to make a simple test and configure a keycloak proxy to<br>&gt; protect an application running on <a href="http://localhost:8280/backend/" rel="noreferrer" target="_blank">http://localhost:8280/backend/</a><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">&gt;on looks like the following:<br>&gt;<br>&gt; {<br>&gt;      &quot;target-url&quot;: &quot;<a href="http://localhost:8280/" rel="noreferrer" target="_blank">http://localhost:8280/</a>&quot;,<br>&gt;      &quot;send-access-token&quot;: false,<br>&gt;      &quot;bind-address&quot;: &quot;localhost&quot;,<br>&gt;      &quot;http-port&quot;: &quot;8080&quot;,<br>&gt;      &quot;applications&quot;: [<br>&gt;          {<br>&gt;              &quot;base-path&quot;: &quot;/backend&quot;,<br>&gt;              &quot;error-page&quot;: &quot;/error.html&quot;,<br>&gt;              &quot;adapter-config&quot;: {<br>&gt;                  &quot;realm&quot;: &quot;demo&quot;,<br>&gt;                  &quot;resource&quot;: &quot;sandbox-backend&quot;,<br>&gt;                  &quot;realm-public-key&quot;:<br>&gt; &quot;MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB&quot;,<br>&gt;                  &quot;auth-server-url&quot;: &quot;<a href="http://localhost:8180/auth" rel="noreferrer" target="_blank">http://localhost:8180/auth</a>&quot;,<br>&gt;                  &quot;ssl-required&quot; : &quot;external&quot;,<br>&gt;                  &quot;credentials&quot;: {<br>&gt;                      &quot;secret&quot;: &quot;9323cdd6-7e0e-46ce-814f-b5ac79581395&quot;<br>&gt;                  }<br>&gt;              }<br>&gt;          }<br>&gt;      ]<br>&gt; }<br>&gt;<br>&gt; 2.<br>&gt; I&#39;ve started the proxy server as specified in the documentation &quot;java<br>&gt; -jar bin/launcher.jar proxy.json&quot;<br>&gt; I am getting an error &quot;ERROR: UT005026: Jetty ALPN support not found on<br>&gt; boot class path, SPDY client will not be available.&quot;, but the server<br>&gt; still starts, I don&#39;t think there should be a problem with that...<br>&gt;<br>&gt; 3. In the admin console (keycloak running on port 8180) I&#39;ve configured<br>&gt; the backend application like the following:<br>&gt;<br>&gt; Could you tell me what I am doing wrong? When I put in the app&#39;s url in<br>&gt; the browser it goes directly to the application...<br>&gt;<br>&gt; Thanks,<br>&gt; Adrian&quot;</blockquote><div> </div></div></div>