<div dir="ltr">Hi Marek,<div><br></div><div>thank you for the advice. It helped me. Just small correction - the web.xml is located in /modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/web.xml (in my Keycloak 1.9.3.Final). The filter definition looks then like follows:</div><div><br></div><div>    &lt;filter&gt;</div><div>        &lt;filter-name&gt;Keycloak Session Management&lt;/filter-name&gt;</div><div>        &lt;filter-class&gt;org.keycloak.services.filters.KeycloakSessionServletFilter&lt;/filter-class&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;async-supported&gt;true&lt;/async-supported&gt;</div><div>    &lt;/filter&gt;</div><div><br></div><div>Before applying the filter settings I found a small trick how to do the same by putting two lines in the code:</div><div><pre style="color:rgb(0,0,0);font-family:&#39;Courier New&#39;"><span style="color:rgb(128,128,128);font-style:italic">ServletRequestContext context = ServletRequestContext.current();<br></span><span style="color:rgb(128,128,128);font-style:italic">context.setAsyncSupported(true);</span></pre><pre style="color:rgb(0,0,0);font-family:&#39;Courier New&#39;"><span style="font-family:arial,sans-serif;color:rgb(34,34,34)">Anyway, I will create a JIRA for this.</span><br></pre><pre style="color:rgb(0,0,0);font-family:&#39;Courier New&#39;"><span style="font-family:arial,sans-serif;color:rgb(34,34,34)">Thank you&amp;Best regards,</span></pre><pre style="color:rgb(0,0,0);font-family:&#39;Courier New&#39;"><span style="font-family:arial,sans-serif;color:rgb(34,34,34)">Bystrik</span></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 2:37 PM, Marek Posolda <span dir="ltr">&lt;<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.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 bgcolor="#FFFFFF" text="#000000">
    <div>Sorry, I meant to put:<br>
      <br>
      &lt;assync-supported&gt;true&lt;/async-supported&gt;<br>
      <br>
      to that filter.<span class="HOEnZb"><font color="#888888"><br>
      <br>
      Marek</font></span><div><div class="h5"><br>
      <br>
      On 31/05/16 14:36, Marek Posolda wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      
      <div>Maybe it will help if you put it to
        KEYCLOAK_HOME/modules/systems/add-ons/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/web.xml

        to Keycloak Session Management Filter? Feel free to create JIRA
        for it (and mention if it helps or not. If it helps, then we
        know that it&#39;s sufficient to add it to that filter, so it will
        be easy work to fix).<br>
        <br>
        Marek<br>
        <br>
        <br>
        On 31/05/16 10:50, Bystrik Horvath wrote:<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">Hello community,
          <div><br>
          </div>
          <div>I found that (since 1.9.2?) there&#39;s <span style="color:rgb(0,0,0);font-family:&#39;Courier New&#39;">RealmResourceProvider

            </span>that gives me the possibility to provide own REST
            endpoint. After implementing the endpoint using async
            capabilty of jax-rs, I&#39;m getting exception like: </div>
          <div>UT010026: Async is not supported for this request, as not
            all filters or Servlets were marked as supporting async.</div>
          <div><br>
          </div>
          <div>How is it possible to tweak Keycloak (I&#39;m currently on
            1.9.3) to asynchronously respond to my requests in
            implementation of <span style="color:rgb(0,0,0);font-family:&#39;Courier New&#39;">RealmResourceProvider</span>?</div>
          <div><br>
          </div>
          <div>Thank you for any comment on this.</div>
          <div><br>
          </div>
          <div>Best regards,</div>
          <div>Bystrik</div>
        </div>
        <br>
        <fieldset></fieldset>
        <br>
        <pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>