You can get the logged user like this:

@Inject
private RequestGlobals requestGlobals;
...
...
requestGlobals.getHTTPServletRequest().getUserPrincipal();

Then if you need to get more information about the user you just inject the UserDetailsService into you component / page and use it to retrieve whatever information you need.

spamglik wrote:
HI

I have a problem accesing logged in user on a page. I tried to use ASO but
have no idea how to create ASO in UserDetailService implementation. I saw some previous disscussions on forum but still it doesn't ring a bell.
Maybe somebody have some example? or any tips?


kind regards
Mateusz

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to