<div dir="ltr">Answer depends on what application server you are using, but in summary you need to make sure the reverse proxy is configured to include correct headers and application server is configured to use the headers. This is required so HttpServletRequest.getRequestURL returns the URL used by the user and not the internal URL used by the proxy.</div><div class="gmail_extra"><br><div class="gmail_quote">On 16 June 2016 at 08:19, ROMELOT Didier <span dir="ltr">&lt;<a href="mailto:didier.romelot@renault.com" target="_blank">didier.romelot@renault.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="FR" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span lang="EN-US">Hi, we deploy applications that use keycloak SAML filter to handle SAML authentication.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">We face some trouble when configuring the app acting behind a reverse proxy. In that situation keycloak library raises an exception :<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333;background:white">WebBrowserSsoAuthenticationHandler ERROR Request URI does not match SAML request destination<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333;background:white"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333;background:white">We try to fix it with configuration on reverse proxy but whithout success.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333;background:white"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333;background:white">Does anyone faced with such problem ?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333;background:white"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#333333;background:white">regards</span><span lang="EN-US">
</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="245" valign="top" style="width:184.05pt;border:none;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span style="color:#1f497d"><img width="224" height="71" src="cid:image001.jpg@01D1C7A7.946E7DB0" alt="http://collaboration2010.sharepoint.renault.fr/is/fsc/places/blog/Lists/Photos/Logo/Alliance_logo_low_ok_tcm1253-923195.jpg"><u></u><u></u></span></p>
</td>
<td width="378" valign="top" style="width:283.45pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><b><span style="font-size:8.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Didier ROMELOT</span></b><span style="font-size:8.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black"><br>
DIA-AT -  Technical Architecture<br>
API : FR EQV NOV 3 39 <br>
13, avenue Paul Langevin<br>
92359 Le Plessis Robinson Cedex - FRANCE<br>
Tél. : <a href="tel:%2B33%201%2076%2084%2095%2028" value="+33176849528" target="_blank">+33 1 76 84 95 28</a>  </span><span style="color:#1f497d"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p>-- Disclaimer ------------------------------------ <br>
Ce message ainsi que les eventuelles pieces jointes constituent une correspondance privee et confidentielle a l&#39;attention exclusive du destinataire designe ci-dessus. Si vous n&#39;etes pas le destinataire du present message ou une personne susceptible de pouvoir le lui delivrer, il vous est signifie que toute divulgation, distribution ou copie de cette transmission est strictement interdite. Si vous avez recu ce message par erreur, nous vous remercions d&#39;en informer l&#39;expediteur par telephone ou de lui retourner le present message, puis d&#39;effacer immediatement ce message de votre systeme.</p>

<p>*** This e-mail and any attachments is a confidential correspondence intended only for use of the individual or entity named above. If you are not the intended recipient or the agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by phone or by replying this message, and then delete this message from your system.</p></div>

<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>