<div dir="ltr">Did you add the keycloak security domain as described in docs?</div><div class="gmail_extra"><br><div class="gmail_quote">On 25 September 2015 at 12:14, Michal Hajas <span dir="ltr">&lt;<a href="mailto:mhajas@redhat.com" target="_blank">mhajas@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">Hi,<br>
<br>
I tried to run keycloak client with annotations $SecurityDomain, @RolesAllowed etc. ( <a href="https://github.com/mhajas/keycloak_annotations" rel="noreferrer" target="_blank">https://github.com/mhajas/keycloak_annotations</a> )<br>
<br>
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:<br>
<br>
failed to execute: javax.ws.rs.ForbiddenException: HTTP 403 Forbidden<br>
        at org.jboss.resteasy.plugins.interceptors.RoleBasedSecurityFilter.filter(RoleBasedSecurityFilter.java:45)<br>
<br>
I have configured my keycloak adapter correctly according to <a href="http://keycloak.github.io/docs/userguide/html/ch08.html#jboss-adapter" rel="noreferrer" target="_blank">http://keycloak.github.io/docs/userguide/html/ch08.html#jboss-adapter</a> but I don&#39;t know how to configure web.xml. What can be replaced with annotations and what should be preserved.<br>
<br>
I tried both relative and un-relative scenario.<br>
<br>
So question is what is wrong with my client?<br>
<br>
P.S. I think there might be an example with annotation.<br>
_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
</blockquote></div><br></div>