<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang="PT-BR" link="blue" vlink="purple">
<div class="Section1">
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Original question https://issues.jboss.org/browse/KEYCLOAK-2029<o:p></o:p></span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hi,<o:p></o:p></span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I'm studing how integrate my applications whit keycloak whit minor impact.<br>
I'm using JBoss EAP 6.3.0, i instaled keycloak adapters like reference guide says in chapter 8 and keycloak 1.6.0.<o:p></o:p></span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">#1 I have a form html:<o:p></o:p></span></font></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr id="syntaxplugin_code_and_gutter">
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<pre style="mso-margin-top-alt:
  6.0pt;margin-right:6.0pt;margin-bottom:0cm;margin-left:6.0pt;margin-bottom:
  .0001pt"><font size="3" color="black" face="Courier New"><span style="font-size:
  12.0pt;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span></font><b><font size="3" color="#006699"><span style="font-size:12.0pt;color:#006699;font-weight:bold">form</span></font></b><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">class</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;form-signin&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">id</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;loginform&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">action</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;j_security_check&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">method</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;POST&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> &gt; <o:p></o:p></span></font></pre>
</td>
</tr>
<tr id="syntaxplugin_code_and_gutter">
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<pre style="mso-margin-top-alt:
  0cm;margin-right:6.0pt;margin-bottom:0cm;margin-left:6.0pt;margin-bottom:
  .0001pt"><font size="3" color="black" face="Courier New"><span style="font-size:
  12.0pt;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span></font><b><font size="3" color="#006699"><span style="font-size:12.0pt;color:#006699;font-weight:bold">label</span></font></b><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">for</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;inputUsernamel&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">class</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;sr-only&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">&gt;Usu&amp;aacute;rio&lt;/</span></font><b><font size="3" color="#006699"><span style="font-size:12.0pt;color:#006699;
  font-weight:bold">label</span></font></b><font size="3" color="black"><span style="font-size:12.0pt;color:black">&gt; <o:p></o:p></span></font></pre>
</td>
</tr>
<tr id="syntaxplugin_code_and_gutter">
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<pre style="mso-margin-top-alt:
  0cm;margin-right:6.0pt;margin-bottom:0cm;margin-left:6.0pt;margin-bottom:
  .0001pt"><font size="3" color="black" face="Courier New"><span style="font-size:
  12.0pt;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span></font><b><font size="3" color="#006699"><span style="font-size:12.0pt;color:#006699;font-weight:bold">input</span></font></b><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">name</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;j_username&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">type</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;text&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">id</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;usuario&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">class</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;form-control&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">placeholder</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;Usuario&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> required autofocus &gt; <o:p></o:p></span></font></pre>
</td>
</tr>
<tr id="syntaxplugin_code_and_gutter">
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<pre style="mso-margin-top-alt:
  0cm;margin-right:6.0pt;margin-bottom:0cm;margin-left:6.0pt;margin-bottom:
  .0001pt"><font size="3" color="black" face="Courier New"><span style="font-size:
  12.0pt;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></font></pre>
</td>
</tr>
<tr id="syntaxplugin_code_and_gutter">
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<pre style="mso-margin-top-alt:
  0cm;margin-right:6.0pt;margin-bottom:0cm;margin-left:6.0pt;margin-bottom:
  .0001pt"><font size="3" color="black" face="Courier New"><span style="font-size:
  12.0pt;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span></font><b><font size="3" color="#006699"><span style="font-size:12.0pt;color:#006699;font-weight:bold">label</span></font></b><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">for</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;inputPassword&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">class</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;sr-only&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">&gt;Senha&lt;/</span></font><b><font size="3" color="#006699"><span style="font-size:12.0pt;color:#006699;
  font-weight:bold">label</span></font></b><font size="3" color="black"><span style="font-size:12.0pt;color:black">&gt; <o:p></o:p></span></font></pre>
</td>
</tr>
<tr id="syntaxplugin_code_and_gutter">
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<pre style="mso-margin-top-alt:
  0cm;margin-right:6.0pt;margin-bottom:0cm;margin-left:6.0pt;margin-bottom:
  .0001pt"><font size="3" color="black" face="Courier New"><span style="font-size:
  12.0pt;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span></font><b><font size="3" color="#006699"><span style="font-size:12.0pt;color:#006699;font-weight:bold">input</span></font></b><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">name</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;j_password&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">type</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;password&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">id</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;senha&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">class</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;form-control&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">placeholder</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;Senha&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> required &gt;<o:p></o:p></span></font></pre>
</td>
</tr>
<tr id="syntaxplugin_code_and_gutter">
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<pre style="mso-margin-top-alt:
  0cm;margin-right:6.0pt;margin-bottom:0cm;margin-left:6.0pt;margin-bottom:
  .0001pt"><font size="3" color="black" face="Courier New"><span style="font-size:
  12.0pt;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></font></pre>
</td>
</tr>
<tr id="syntaxplugin_code_and_gutter">
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<pre style="mso-margin-top-alt:
  0cm;margin-right:6.0pt;margin-bottom:0cm;margin-left:6.0pt;margin-bottom:
  .0001pt"><font size="3" color="black" face="Courier New"><span style="font-size:
  12.0pt;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span></font><b><font size="3" color="#006699"><span style="font-size:12.0pt;color:#006699;font-weight:bold">button</span></font></b><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">class</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;btn btn-lg btn-primary btn-block&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">type</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;submit&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> </span></font><font size="3" color="gray"><span style="font-size:12.0pt;color:gray">id</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">=</span></font><font size="3" color="blue"><span style="font-size:12.0pt;color:blue">&quot;btnLogin&quot;</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> &gt;Acessar&lt;/</span></font><b><font size="3" color="#006699"><span style="font-size:12.0pt;color:#006699;
  font-weight:bold">button</span></font></b><font size="3" color="black"><span style="font-size:12.0pt;color:black">&gt;<o:p></o:p></span></font></pre>
</td>
</tr>
<tr id="syntaxplugin_code_and_gutter">
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<pre style="mso-margin-top-alt:
  0cm;margin-right:6.0pt;margin-bottom:6.0pt;margin-left:6.0pt"><font size="3" color="black" face="Courier New"><span style="font-size:12.0pt;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span></font><b><font size="3" color="#006699"><span style="font-size:12.0pt;color:#006699;
  font-weight:bold">form</span></font></b><font size="3" color="black"><span style="font-size:12.0pt;color:black">&gt;<o:p></o:p></span></font></pre>
</td>
</tr>
</tbody>
</table>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">#2 In my web.xml i have &lt;auth-method&gt;KEYCLOAK&lt;/auth-method&gt;<o:p></o:p></span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">#3 I have WEB-INF/keycloak.json like reference says.<o:p></o:p></span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">#4 my client is configured like image attached<o:p></o:p></span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">#5 When i send a user and pass in html form i have:<o:p></o:p></span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">We're sorry ...<br>
Invalid parameter: redirect_uri<o:p></o:p></span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">#6 the keycloak log sasy:<br>
12:14:26,904 DEBUG <span class="error">[org.jboss.ejb.client.txn]</span> (Periodic Recovery) Send recover request for transaction origin node identifier 1 to EJB receiver with node name cd7390sx006<br>
12:14:33,270 DEBUG <span class="error">[org.jboss.resteasy.core.SynchronousDispatcher]</span> (default task-24) PathInfo: /realms/laboratorio/protocol/openid-connect/auth<br>
<b><span style="font-weight:bold">12:14:33,273 DEBUG <span class="error">[org.keycloak.protocol.oidc.utils.RedirectUtils]</span> (default task-24) replacing relative valid redirect with: /sisduweb/</span></b><br>
12:14:33,273 WARN <span class="error">[org.keycloak.events]</span> (default task-24) type=LOGIN_ERROR, realmId=laboratorio, clientId=sisdu, userId=null, ipAddress=10.208.20.97, error=invalid_redirect_uri, response_type=code, redirect_uri=<a href="http://10.208.20.97:8080/sisduweb/j_security_check*">http://10.208.20.97:8080/sisduweb/j_security_check*</a><br>
12:14:33,274 DEBUG <span class="error">[freemarker.cache]</span> (default task-24) TemplateLoader.findTemplateSource(&quot;template_pt_BR.ftl&quot;): Not found<br>
12:14:33,274 DEBUG <span class="error">[freemarker.cache]</span> (default task-24) TemplateLoader.findTemplateSource(&quot;template_pt.ftl&quot;): Not found<br>
12:14:33,274 DEBUG <span class="error">[freemarker.cache]</span> (default task-24) TemplateLoader.findTemplateSource(&quot;template.ftl&quot;): Found<br>
12:14:33,275 DEBUG <span class="error">[freemarker.cache]</span> (default task-24) &quot;template.ftl&quot;(&quot;pt_BR&quot;, UTF-8, parsed): using cached since
<a href="file:///\\opt\kc\keycloak-1.6.0.Final\standalone\configuration\themes\base\login\template.ftl">
file:/opt/kc/keycloak-1.6.0.Final/standalone/configuration/themes/base/login/template.ftl</a> hasn't changed.<br>
12:14:33,277 DEBUG <span class="error">[freemarker.cache]</span> (default task-24) &quot;template.ftl&quot;(&quot;pt_BR&quot;, UTF-8, parsed) cached copy not yet stale; using cached.<br>
12:14:33,280 DEBUG <span class="error">[freemarker.cache]</span> (default task-24) &quot;template.ftl&quot;(&quot;pt_BR&quot;, UTF-8, parsed) cached copy not yet stale; using cached.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p>&nbsp;</o:p></span></font></p>
</div>
</body>
</html>