<div dir="ltr">Hi Pedro,<div><br></div><div>the pull requst <span style="font-size:12.8px"> </span><a href="https://github.com/keycloak/keycloak/pull/2617" rel="noreferrer" target="_blank" style="font-size:12.8px">https://github.com/keycloak/keycloak/pull/2617</a> contains the change in /modules/system/layers/keycloak/org/keycloak/keycloak-server-subsystem/main/server-war/WEB-INF/web.xml which starts the support of async request/response processing, so it is also suitable for the issue <a href="https://issues.jboss.org/browse/KEYCLOAK-3062" target="_blank" style="font-size:12.8px">https://issues.jboss.org/browse/KEYCLOAK-3062</a></div><div><br></div><div>Best regards,</div><div>Bystrik</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 7:08 PM, Pedro Igor Silva <span dir="ltr"><<a href="mailto:psilva@redhat.com" target="_blank">psilva@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We already have async support from <a href="https://github.com/keycloak/keycloak/pull/2617" rel="noreferrer" target="_blank">https://github.com/keycloak/keycloak/pull/2617</a>.<br>
<br>
Those changes are related with the fine-grained authorization services, which are currently implemented using async support. Wondering if you can try it out and see if we are missing something.<br>
<div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
From: "Bystrik Horvath" <<a href="mailto:bystrik.horvath@gmail.com">bystrik.horvath@gmail.com</a>><br>
To: "Marek Posolda" <<a href="mailto:mposolda@redhat.com">mposolda@redhat.com</a>><br>
Cc: "keycloak-user" <<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>><br>
Sent: Tuesday, May 31, 2016 11:12:05 AM<br>
Subject: Re: [keycloak-user] Async request/response processing at Keycloak<br>
<br>
<a href="https://issues.jboss.org/browse/KEYCLOAK-3062" rel="noreferrer" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-3062</a><br>
<br>
On Tue, May 31, 2016 at 3:49 PM, Bystrik Horvath < <a href="mailto:bystrik.horvath@gmail.com">bystrik.horvath@gmail.com</a> > wrote:<br>
<br>
<br>
<br>
Hi Marek,<br>
<br>
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:<br>
<br>
<filter><br>
<filter-name>Keycloak Session Management</filter-name><br>
<filter-class>org.keycloak.services.filters.KeycloakSessionServletFilter</filter-class><br>
<async-supported>true</async-supported><br>
</filter><br>
<br>
Before applying the filter settings I found a small trick how to do the same by putting two lines in the code:<br>
ServletRequestContext context = ServletRequestContext.current();<br>
context.setAsyncSupported(true);<br>
Anyway, I will create a JIRA for this.<br>
Thank you&Best regards,<br>
Bystrik<br>
<br>
On Tue, May 31, 2016 at 2:37 PM, Marek Posolda < <a href="mailto:mposolda@redhat.com">mposolda@redhat.com</a> > wrote:<br>
<br>
<br>
<br>
Sorry, I meant to put:<br>
<br>
<assync-supported>true</async-supported><br>
<br>
to that filter.<br>
<br>
Marek<br>
<br>
<br>
On 31/05/16 14:36, Marek Posolda wrote:<br>
<br>
<br>
<br>
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>
<br>
<br>
<br>
Hello community,<br>
<br>
I found that (since 1.9.2?) there's RealmResourceProvider 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:<br>
UT010026: Async is not supported for this request, as not all filters or Servlets were marked as supporting async.<br>
<br>
How is it possible to tweak Keycloak (I'm currently on 1.9.3) to asynchronously respond to my requests in implementation of RealmResourceProvider ?<br>
<br>
Thank you for any comment on this.<br>
<br>
Best regards,<br>
Bystrik<br>
<br>
<br>
_______________________________________________<br>
keycloak-user mailing list <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</div></div></blockquote></div><br></div>