[keycloak-user] @RolesAllowed leads to HTTP 500 when user doesn't have the required role

Bill Burke bburke at redhat.com
Tue Apr 1 08:57:52 EDT 2014


Just a regular JAX-RS class?  Not an EJB?

On 4/1/2014 5:00 AM, Nils Preusker wrote:
> Hi,
>
> I'm currently testing the @SecurityDomain("keycloak") and @RolesAllowed
> annotations on my JAX-RS services and was surprised to see that I get a
> HTTP 500 (internal server error) when a requesting user doesn't have the
> role that is required by @RolesAllowed. Is this intentional or a known
> issue or am I doing something wrong in the config?
>
> I'm using Wildfly 8.0.0.Final with the default RestEasy module. Would
> upgrading RestEasy do the trick?
>
> Cheers,
> Nils
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-user mailing list