aspose file tools
The moose likes Tomcat and the fly likes how can I get the user name of the user authenticated by Tomcat in my servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "how can I get the user name of the user authenticated by Tomcat in my servlet?" Watch "how can I get the user name of the user authenticated by Tomcat in my servlet?" New topic
Author

how can I get the user name of the user authenticated by Tomcat in my servlet?

James Byars
Ranch Hand

Joined: Apr 15, 2009
Posts: 42
hi,

if I am using tomcat-users.xml, and I want to get the username in my servlet, can I?

thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

Please be sure to ask Tomcat questions in the Tomcat forum. I have moved this post there for you.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 819


from API for httpServletRequest LINK

getRemoteUser()
Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.
James Byars
Ranch Hand

Joined: Apr 15, 2009
Posts: 42
Bear Bibeault wrote:Please be sure to ask Tomcat questions in the Tomcat forum. I have moved this post there for you.


sorry bear, I did not scroll down enough to notice that there is a whole page for Tomcat.

thank you
James Byars
Ranch Hand

Joined: Apr 15, 2009
Posts: 42
Tim McGuire wrote:
from API for httpServletRequest LINK

getRemoteUser()
Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.


thanks.

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how can I get the user name of the user authenticated by Tomcat in my servlet?
 
Similar Threads
Favoriate Eclipse Plug-ins
Security question with Tomcat
how can I get username in my web application.
How to call 3rd party api for User Authentication in a generic way
Authentication/Authorization