Call to request.getRemoteUser() is made in UserAction class in the edit()
function call.
I am using Struts2 as MVC framework...

Call is made as follows...
user = userManager.getUserByUsername(request.getRemoteUser());

Please help ???



mraible wrote:
> 
> Where are you trying to use request.getRemoteUser()? This will only
> work in Filters and actions/controllers that are filtered by Acegi. In
> other words, the URL path has to match.
> 
> Matt
> 
> On 3/10/08, orangetreats20171 <[EMAIL PROTECTED]> wrote:
>>
>>  Hello,
>>
>>  Using ACEGI for basic form authentication. User is authenticated
>>  successfully after logging.
>>
>>  After successfull validation,
>>  request.getSession().getAttribute("ACEGI_SECURITY_ CONTEXT") returns a
>> valid
>>  authentication object to get hold of user principal and credentials.
>>
>>  However, request.getRemoteUser() returns null.
>>
>>  ACEGI security filters have been configured in web.xml and
>>  securityContextHolderAwareRequestFilter.
>>
>>  Any ideas what the problem is ???
>>
>>  I can provide ACEGI security-context file if needed
>>  Please help??
>>
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/ACEGI-request.getRemoteUser%28%29-returns-null-tp15950800s2369p15950800.html
>>  Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ACEGI-request.getRemoteUser%28%29-returns-null-tp15950800s2369p15972137.html
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