File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts, JAAS Form authentication and Single Sign On Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts, JAAS Form authentication and Single Sign On" Watch "Struts, JAAS Form authentication and Single Sign On" New topic
Author

Struts, JAAS Form authentication and Single Sign On

Busty Sinclair
Greenhorn

Joined: Jun 06, 2002
Posts: 23
Hi all

I have a struts application that uses JAAS to login,I use FORM authentication. I have a menu button on the home page you see after login on which I have placed a role. This is fine when I login as usual using the login form.

However, we have one client who wants to use single sign on. I have a link from their landing page to the application where I pass the username and password to j_security check as parameters:
action/home/j_security_check?j_username=joe&j_password=joespwd

This works fine apart from one thing, the button on which I have placed the role is not visible. Yet when I click on the 'Home' link within the application, it now shows the button. So it seems that bypassing the login page this way skips some step that enables the button. The strange thing is that the role that enables them to login is the same as the one used to enable the button. The app detects the role and enables them to login but doesn't display the button..

any ideas would be GREATLY appreciated!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts, JAAS Form authentication and Single Sign On
 
Similar Threads
Using default JAAS Mechanism in Websphere makes applications to access the context path of the other
JBoss 5.1 authentication problem (works in JBoss 4.2.3)
FORM and BASIC authentication in the same web app
JAAS with JBoss
Single sign on for multiple webapps