This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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!
 
Consider Paul's rocket mass heater.
 
subject: Struts, JAAS Form authentication and Single Sign On