We have a web application using facelets and ejb 3. Our facelets are created in such a way that they render appropriate information depending upon the credentials of the user and whether or not a user is authenticated. To do this our EJBs determine who is making the request and return the appropriate information.
I would like to present a login button on some of the pages that would forward a user to the login form and once successfully authenticated have them sent back to the original page. From my quick experiments it appears that sending the user to a login form will not authenticate the user, but rather the user has to request a secure path and let the server do the forwarding? Does anyone know if it is possible to authenticate a user on demand?
[Message sent by forum member 'chadws' (chadws)]
http://forums.java.net/jive/thread.jspa?messageID=287945