Re: [appfuse-user] ACEGI request.getRemoteUser() returns null

2008-03-12 Thread Matt Raible
I would help if I could reproduce the problem locally. Unfortunately, I'm unable to. You could use the following to try to get the username: SecurityContext securityContext = (SecurityContext) event.getValue(); Authentication auth = securityContext.getAuthentication(); if (auth != null && (auth

Re: [appfuse-user] ACEGI request.getRemoteUser() returns null

2008-03-12 Thread orangetreats20171
Could someone please help me with this I am stuck for quite a while now orangetreats20171 wrote: > > http://www.nabble.com/file/p15986107/security.xml security.xml > > The defaultTargetUrl in authenticationProcessingFilter has been changed to > point to "/mainMenu.html" instead of

Re: [appfuse-user] ACEGI request.getRemoteUser() returns null

2008-03-11 Thread orangetreats20171
http://www.nabble.com/file/p15986107/security.xml security.xml I dont recall making changes to security.xml. i am attaching it anyway. No clue as to what the problem is -- View this message in context: http://www.nabble.com/ACEGI-request.getRemoteUser%28%29-returns-null-tp15950800s2369p15

Re: [appfuse-user] ACEGI request.getRemoteUser() returns null

2008-03-11 Thread orangetreats20171
http://www.nabble.com/file/p15986108/security.xml security.xml I dont recall making changes to security.xml. i am attaching it anyway. No clue as to what the problem is -- View this message in context: http://www.nabble.com/ACEGI-request.getRemoteUser%28%29-returns-null-tp15950800s2369p15

Re: [appfuse-user] ACEGI request.getRemoteUser() returns null

2008-03-11 Thread Matt Raible
Did you modify security.xml at all? It's possible the filter that makes this work is not in the filter chain. Matt On 3/11/08, orangetreats20171 <[EMAIL PROTECTED]> wrote: > > The URL is from mainMenu.jsp... > > ... > > This url invokes UserAction class where call is made to > request.getRem

Re: [appfuse-user] ACEGI request.getRemoteUser() returns null

2008-03-11 Thread orangetreats20171
The URL is from mainMenu.jsp... ".. This url invokes UserAction class where call is made to request.getRemoteUser() -- View this message in context: http://www.nabble.com/ACEGI-request.getRemoteUser%28%29-returns-null-tp15950800s2369p15976662.html Sent from the AppFuse - User mailing list arc

Re: [appfuse-user] ACEGI request.getRemoteUser() returns null

2008-03-10 Thread Matt Raible
What's the URL you're using to access this Action - the one that AppFuse provides? Matt On 3/10/08, orangetreats20171 <[EMAIL PROTECTED]> wrote: > > Call to request.getRemoteUser() is made in UserAction class in the edit() > function call. > I am using Struts2 as MVC framework... > > Call is

Re: [appfuse-user] ACEGI request.getRemoteUser() returns null

2008-03-10 Thread orangetreats20171
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.get

Re: [appfuse-user] ACEGI request.getRemoteUser() returns null

2008-03-10 Thread Matt Raible
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 authenticati

[appfuse-user] ACEGI request.getRemoteUser() returns null

2008-03-10 Thread orangetreats20171
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