In my rest service i can obtain the principal information after authentication using KeycloakPrincipal kcPrincipal = (KeycloakPrincipal) servletRequest.getUserPrincipal() statement.
Keycloak principal does'nt cotain all the information i need about the authenticated user.
Is it possibile to customize my own principal type?
On the keycloak end i ve developed a user federation provider. Is it possibile to insert my custom principal in that code? What is the way?
Thanks to all and regards.
Alessio