<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"><div id="yui_3_16_0_1_1442610785812_3486" style="word-wrap: break-word; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;">I'm working on SSO using jboss keycloak.<br></div><div id="yui_3_16_0_1_1442610785812_3486" dir="ltr" style="word-wrap: break-word; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;">I m developing a user federation provider working with my custom user database and ldap authentication.</div><div id="yui_3_16_0_1_1442610785812_3486" dir="ltr" style="word-wrap: break-word; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;">i m able to do the authentication process but now i need to retrieve to my webapplications a Principal extending the keycloak one.</div><div
 id="yui_3_16_0_1_1442610785812_3486" dir="ltr" style="word-wrap: break-word; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;">I mean that my rest service could have to access a principal object holding other information besides those covered by keycloakPrincipal (i.e. company group, company and others).</div><div id="yui_3_16_0_1_1442610785812_3486" dir="ltr" style="word-wrap: break-word; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;">i was planning to write my own MyProjectPrincipal extending keycloakPrincipal but then...&nbsp;</div><div id="yui_3_16_0_1_1442610785812_3486" dir="ltr" style="word-wrap: break-word; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;">is it the right way?</div><div id="yui_3_16_0_1_1442610785812_3486" dir="ltr" style="word-wrap: break-word;
 font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;">how can i retrieve this principal to my custom webapplication? (i.e. REST service)?</div><div id="yui_3_16_0_1_1442610785812_3486" dir="ltr" style="word-wrap: break-word; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"><br style="word-wrap: break-word;"></div><div id="yui_3_16_0_1_1442610785812_3486" dir="ltr" style="word-wrap: break-word; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;">Best regards and thanks a lot for your attention.</div><p><span style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yMail_cursorElementTracker_0.36143695656210184">Alessio</span><a href="https://overview.mail.yahoo.com/mobile/?.src=Android"
 id="yMail_cursorElementTracker_0.4397748780902475">Inviato da Yahoo Mail su Android</a></p></td></tr></table>