Discussing this at the eXo platform forum. Dunno how to input the direct link to the forum here... It's not transparent actually =)
I shall post the correct solution here once I get it.
Not sure exactly what you mean by user credentials, but:
1. The user's login name (used for authentication) can be obtained through the standard portlet API:
PortletRequest.getRemoteUser()or the principal:
2. JSR286 also has support for retrieving other user attributes when configured in portlet.xml (see the JSR286 spec http://jcp.org/en/jsr/detail?id=286).
Hi apemberton =)
I've found the solution already, the one I used was:
username = PortalIdentity.instance().getPrincipal().getName();
This was exactly the one I was looking for.