[keycloak-dev] Run keycloak client with annotations

Stian Thorgersen sthorger at redhat.com
Fri Sep 25 07:08:28 EDT 2015


Did you add the keycloak security domain as described in docs?

On 25 September 2015 at 12:14, Michal Hajas <mhajas at redhat.com> wrote:

> Hi,
>
> I tried to run keycloak client with annotations $SecurityDomain,
> @RolesAllowed etc. ( https://github.com/mhajas/keycloak_annotations )
>
> Maybe It is just my mistake, I am not an expert in RestFul services and
> EJB, but I tried lot of configurations and always ends up with some error,
> mostly with:
>
> failed to execute: javax.ws.rs.ForbiddenException: HTTP 403 Forbidden
>         at
> org.jboss.resteasy.plugins.interceptors.RoleBasedSecurityFilter.filter(RoleBasedSecurityFilter.java:45)
>
> I have configured my keycloak adapter correctly according to
> http://keycloak.github.io/docs/userguide/html/ch08.html#jboss-adapter but
> I don't know how to configure web.xml. What can be replaced with
> annotations and what should be preserved.
>
> I tried both relative and un-relative scenario.
>
> So question is what is wrong with my client?
>
> P.S. I think there might be an example with annotation.
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20150925/cb32a05c/attachment.html 


More information about the keycloak-dev mailing list