File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Custom form based authentication in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Custom form based authentication in JSF" Watch "Custom form based authentication in JSF" New topic
Author

Custom form based authentication in JSF

Rocky kesavan
Greenhorn

Joined: Feb 01, 2011
Posts: 2
Hi all,
I am working on creating a JSF form for user authentication. My authentication source which is SiteMinder requries the JSF form to POST the credentails. but JSF is not allowing me to do a HTTP POST . Is there any suggested worarounds?

Your help is greatly appreciated.

Thanks,
Rakesh
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14456
    
    7

Welcome to the JavaRanch, Rocky!

If SiteMinder is using J2EE container-managed security, the restriction would actually be in J2EE itself. Container-managed security isn't invoked via a URL, it's activated when a page request is made to a secured URL, and what actually happens is that the original request is temporarily sidelined while the container manages login. Since the container can know nothing about the app, it hasn't the ability to access app resources, and in particular, the login page defined in web.xml doesn't get routed through the FacesServlet the way that ordinary page requests do.

Short answer: Use a standard (non-JSF) JSP for your login page. Personally, I discourage complications on login pages. For one thing, they can introduce security hazards. My login pages are rather stark, since the whole point is that accessing secure resources is not a thing to do lightly.


Customer surveys are for companies who didn't pay proper attention to begin with.
Rocky kesavan
Greenhorn

Joined: Feb 01, 2011
Posts: 2
Hi Tim,
Thanks for your reply. It absolutely make sense to have complexity reduced in login page. I am planning to go with a jsp portlet. I truly appreciate your answer.

Regards,
Rakesh
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Custom form based authentication in JSF
 
Similar Threads
FORM authentication and http methods
Using the rendered attribute nulls my value related backing bean variable.
servlet security
login authentication
Security Maintenance