This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Container based authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Container based authentication" Watch "Container based authentication" New topic
Author

Container based authentication

Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
Suppose I use container based form based authentication (j_username, j_password).
Suppose I request for a constraint resource and since its a constraint, container will ask me for authentication. Once I authenticate myself , the container will forward the request to requested constraint resource. Now in the constraint resource is there any way to get the user name that was used by the user and against which the container authenticated.
I tried
a) request.getParameterNames()
b) request.getQueryString()
Both these methods do not contain the user name.

SCJP, SCWCD, SCBCD
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
The HttpServletRequest.getRemoteUser method returns the user name after a successful authentication.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Container based authentication
 
Similar Threads
SSL and certificates Configuration in WebSphere Application Server 7
Does <auth-method> can have vendor-specific authentication scheme?
redirecting to custom page for http error codes
Get Error messages/Exceptions from Active Directory Server(ADS) with Weblogic 9.2
Form Authentication not working