What role is being checked by @RolesAllowed() in keycloak

Viewed 2739

I am using keycloak, and I have created a dropwizard service that I want to start enforcing roles in.

I have tried using the @RolesAllowd("user") annotation, but it always returns 403.

I have also tried @PermitAll, and that works fine.

I know I am connected correctly to the server, as the user has the correct information in it (email, name, etc), but where do the roles come from?

Is there a way to see the roles that a user has?

2 Answers
Related