• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getUserpricipal()

 
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which container are you using?
 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using ATG2006.3

is it container dependent ?

Thanks,
Neeraj.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic