This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
Both these methods do not contain the user name.