[keycloak-user] Async request/response processing at Keycloak
Bystrik Horvath
bystrik.horvath at gmail.com
Wed Jun 1 03:12:06 EDT 2016
Hi Pedro,
the pull requst https://github.com/keycloak/keycloak/pull/2617 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 https://issues.jboss.org/browse/KEYCLOAK-3062
Best regards,
Bystrik
On Tue, May 31, 2016 at 7:08 PM, Pedro Igor Silva <psilva at redhat.com> wrote:
> We already have async support from
> https://github.com/keycloak/keycloak/pull/2617.
>
> 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.
>
> ----- Original Message -----
> From: "Bystrik Horvath" <bystrik.horvath at gmail.com>
> To: "Marek Posolda" <mposolda at redhat.com>
> Cc: "keycloak-user" <keycloak-user at lists.jboss.org>
> Sent: Tuesday, May 31, 2016 11:12:05 AM
> Subject: Re: [keycloak-user] Async request/response processing at Keycloak
>
> https://issues.jboss.org/browse/KEYCLOAK-3062
>
> On Tue, May 31, 2016 at 3:49 PM, Bystrik Horvath <
> bystrik.horvath at gmail.com > wrote:
>
>
>
> Hi Marek,
>
> 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:
>
> <filter>
> <filter-name>Keycloak Session Management</filter-name>
>
> <filter-class>org.keycloak.services.filters.KeycloakSessionServletFilter</filter-class>
> <async-supported>true</async-supported>
> </filter>
>
> Before applying the filter settings I found a small trick how to do the
> same by putting two lines in the code:
> ServletRequestContext context = ServletRequestContext.current();
> context.setAsyncSupported(true);
> Anyway, I will create a JIRA for this.
> Thank you&Best regards,
> Bystrik
>
> On Tue, May 31, 2016 at 2:37 PM, Marek Posolda < mposolda at redhat.com >
> wrote:
>
>
>
> Sorry, I meant to put:
>
> <assync-supported>true</async-supported>
>
> to that filter.
>
> Marek
>
>
> On 31/05/16 14:36, Marek Posolda wrote:
>
>
>
> 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).
>
> Marek
>
>
> On 31/05/16 10:50, Bystrik Horvath wrote:
>
>
>
> Hello community,
>
> 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:
> UT010026: Async is not supported for this request, as not all filters or
> Servlets were marked as supporting async.
>
> How is it possible to tweak Keycloak (I'm currently on 1.9.3) to
> asynchronously respond to my requests in implementation of
> RealmResourceProvider ?
>
> Thank you for any comment on this.
>
> Best regards,
> Bystrik
>
>
> _______________________________________________
> keycloak-user mailing list keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160601/a8984e9a/attachment-0001.html
More information about the keycloak-user
mailing list