<div dir="ltr"><a href="https://issues.jboss.org/browse/KEYCLOAK-3062">https://issues.jboss.org/browse/KEYCLOAK-3062</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 3:49 PM, Bystrik Horvath <span dir="ltr"><<a href="mailto:bystrik.horvath@gmail.com" target="_blank">bystrik.horvath@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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> <filter></div><div> <filter-name>Keycloak Session Management</filter-name></div><div> <filter-class>org.keycloak.services.filters.KeycloakSessionServletFilter</filter-class></div><div><span style="white-space:pre-wrap">        </span><async-supported>true</async-supported></div><div> </filter></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:'Courier New'"><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:'Courier New'"><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:'Courier New'"><span style="font-family:arial,sans-serif;color:rgb(34,34,34)">Thank you&Best regards,</span></pre><pre style="color:rgb(0,0,0);font-family:'Courier New'"><span style="font-family:arial,sans-serif;color:rgb(34,34,34)">Bystrik</span></pre></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 2:37 PM, Marek Posolda <span dir="ltr"><<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>></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>
<assync-supported>true</async-supported><br>
<br>
to that filter.<span><font color="#888888"><br>
<br>
Marek</font></span><div><div><br>
<br>
On 31/05/16 14:36, Marek Posolda wrote:<br>
</div></div></div><div><div>
<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'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's <span style="color:rgb(0,0,0);font-family:'Courier New'">RealmResourceProvider
</span>that gives me the possibility to provide own REST
endpoint. After implementing the endpoint using async
capabilty of jax-rs, I'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'm currently on
1.9.3) to asynchronously respond to my requests in
implementation of <span style="color:rgb(0,0,0);font-family:'Courier New'">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>
</div></div></blockquote></div><br></div>