<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1442708839520_2246" dir="ltr">In my rest service i can obtain the principal information after authentication using&nbsp;KeycloakPrincipal kcPrincipal = (KeycloakPrincipal) servletRequest.getUserPrincipal() statement.</div><div id="yui_3_16_0_1_1442708839520_2246" dir="ltr">Keycloak principal does'nt cotain all the information i need about the authenticated user.</div><div id="yui_3_16_0_1_1442708839520_2246" dir="ltr">Is it possibile to customize my own principal type?</div><div id="yui_3_16_0_1_1442708839520_2246" dir="ltr">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?</div><div id="yui_3_16_0_1_1442708839520_2246" dir="ltr">Thanks to all and regards.</div><div id="yui_3_16_0_1_1442708839520_2246" dir="ltr">Alessio</div></div></body></html>