Just checked the value of
request.getSession().getAttribute("ACEGI_SECURITY_CONTEXT"), and got back
the correct value:

[EMAIL PROTECTED]: Authentication:
[EMAIL PROTECTED]:
Username:
[EMAIL 
PROTECTED],enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted
Authorities: ,ROLE_USER]; Password: [PROTECTED]; Authenticated: true;
Details: [EMAIL PROTECTED]:
RemoteIpAddress: 127.0.0.1; SessionId: gnut890msqzx; Granted Authorities:
ROLE_USER

Hmm...

Greg


gederer wrote:
> 
> Hi,
> 
> In my controller code, request.getRemoteUser() returns null even when I'm
> logged in.  Also tried
> SecurityContextHolder.getContext().getAuthentication().  This returns
> null, too.
> 
> I'm using Jetty, and I had to add:
> 
>   request.getSession().setAttribute("ACEGI_SECURITY_CONTEXT", context);
> 
> to my signup controller in order to get it to remember my automatically
> logged in user.  Could this issue be related?
> 
> Thanks,
> 
> Greg
> 

-- 
View this message in context: 
http://www.nabble.com/request.getRemoteUser%28%29-always-returns-null-tf4542608s2369.html#a12963627
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to