I'm protecting a JavaEE running on Tomcat with the library javaee-pac4j
with an OpenID Connect flow (with library pac4j-oidc
) that is managed by a Keycloak istance.
After a successful login in Keycloak for a protected resource, I obtain the UserProfile
from the WebContext
and SessionStore
inherited by the default pac4j logics. I'm able to obtain various like roles, permissions, attributes, etc.. but I see no clear way to retrieve the groups where the user is in inside Keycloak.
Is there any method of the pac4j-oidc
library that returns me said group list, or should I create a custom mapper in the Keycloak client configuration?