title: Unable to redirect to my Tomcat application after Keycloak login
body: <p>after configuring my Tomcat Application, and the Keycloak-Tomcat connector, I am trying to make Keycloak login work.
  When I enter my application main page(localhost:8081/PowerApp), the keycloak login page appears. After I log in, the browser displays this error: ERR_TOO_MANY_REDIRECTS, and apparently, there is an infinite loop in the communication between Keycloak and my application (please, you may find attached a screenshot of this communication).</p>
  
  <p>I hace configured my Tomcat adapter by adding this to my web.xml (apart from creating the context.xml):</p>
  
  <pre><code>(...)
  &lt;security-constraint&gt;
  &lt;display-name&gt; constraint for the roles folder &lt;/display-name&gt;
  &lt;web-resource-collection&gt;
  &lt;web-resource-name&gt; PowerApp main&lt;/web-resource-name&gt;
  &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/web-resource-collection&gt;
  &lt;auth-constraint&gt;
  &lt;role-name&gt;DRIVER&lt;/role-name&gt;
  &lt;role-name&gt;ADMIN&lt;/role-name&gt;
  &lt;/auth-constraint&gt;
  &lt;/security-constraint&gt;
  (.....)
  </code></pre>
  
  <p>In the administration console, I have configured this parameters inside my client:
  Valid redirect URI: <a href="http://localhost:8081/PowerApp/" rel="nofollow noreferrer">http://localhost:8081/PowerApp/</a>*</p>
  
  <p>Thank you very much.
  <a href="https://i.stack.imgur.com/TaOlq.png" rel="nofollow noreferrer">communication flow</a></p>