<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> </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"> <</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">"form-signin"</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">"loginform"</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">"j_security_check"</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">"POST"</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> > <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"> <</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">"inputUsernamel"</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">"sr-only"</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">>Usu&aacute;rio</</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">> <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"> <</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">"j_username"</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">"text"</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">"usuario"</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">"form-control"</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">"Usuario"</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> required autofocus > <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"> <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"> <</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">"inputPassword"</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">"sr-only"</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black">>Senha</</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">> <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"> <</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">"j_password"</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">"password"</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">"senha"</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">"form-control"</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">"Senha"</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> required ><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"> <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"> <</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">"btn btn-lg btn-primary btn-block"</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">"submit"</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">"btnLogin"</span></font><font size="3" color="black"><span style="font-size:12.0pt;color:black"> >Acessar</</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">><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"> </</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">><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 <auth-method>KEYCLOAK</auth-method><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("template_pt_BR.ftl"): Not found<br>
12:14:33,274 DEBUG <span class="error">[freemarker.cache]</span> (default task-24) TemplateLoader.findTemplateSource("template_pt.ftl"): Not found<br>
12:14:33,274 DEBUG <span class="error">[freemarker.cache]</span> (default task-24) TemplateLoader.findTemplateSource("template.ftl"): Found<br>
12:14:33,275 DEBUG <span class="error">[freemarker.cache]</span> (default task-24) "template.ftl"("pt_BR", 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) "template.ftl"("pt_BR", 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) "template.ftl"("pt_BR", 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> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
</body>
</html>