aspose file tools*
The moose likes Servlets and the fly likes getUserpricipal() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "getUserpricipal()" Watch "getUserpricipal()" New topic
Author

getUserpricipal()

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
Hi,

After user has logged in by submitting the username/pswd on login page. Control goes to homepage of my application. where I am able to see the login id using request.getUserPrincipal().

There are multiple roles for the logged in user. each role has a different username but same pswd. when the logged in user clicsk the link "change role" I need to update the login id in session id.I am able to change the username in my session to the new user identity.

is there any way to change the value for request.getUserPrincipal() to reflect the new username without asking the user to login again.

Thanks,
neeraj
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Which container are you using?
Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
Hi,

I am using ATG2006.3

is it container dependent ?

Thanks,
Neeraj.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I don't know what an 'ATG2006.3' is, but what I am thinking of is server dependent.

The server can decide to authenticate a user, but this code behaves differently in each container. In Websphere you use the SSOAuthenticator, but I'm not sure how it works in other servers.
Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
Hi,

How can I check, which Authentication is being done on the ATG server.

is it possible to reauthenticate user identity on websphere after user logs in through a form submission on ibm webphere and if yes.. how can we do it.. I will try to do it in the similar way on ATG server..


Thanks,
Neeraj.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getUserpricipal()