• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubts about container managed authentication  RSS feed

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post.
I read in articles ant tutorial that we can use Realms + form and basic authentication to authenticate users with username/password.
I also made a sample web application with all changes in web.xml and server configuration.
Now the problem is : how can i understand which user is loged in now ?
i mean how i can retrive current user' username ?

before this i used my own authentication mechanism and i add the UserName to session , so i could understand the userName by looking at a variable in session.
but for this container managed authentication, i do not know where to look at to understand the current userName.

thanks
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*As far as i know*, you wont be able to obtain that information. Which server are you using? If it's JBoss, then they have a ExtendedFormAuthenticator which makes this possible.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!