Hi bndct0 I would be glad to share. :-)
All I did was to uncomment the following line in the server.xml file. | <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> | Mine is located at: C:\jboss-4.0.2\server\localdev\deploy\jbossweb-tomcat55.sar I'm not using clustering or anything fancy like that. After getting authenticated and setting up the Tomcat valve, I made sure that any webapps that I wanted under the same security umbrella used the same security context. In addition, I added the following to my web.xml | <login-config> | <auth-method>FORM</auth-method> | <realm-name>Myportal</realm-name> | <form-login-config> | <form-login-page>/loginredirect.jsp</form-login-page> | <form-error-page>/loginerrorredirect.jsp</form-error-page> | </form-login-config> | </login-config> | This allows me to use a single sign-on page that is stored in my login web-app. (I kept the login web-app seperate from all the others) The loginredirect.jsp is as follows: | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | <html> | <body> | <c:redirect context="/TuraPortalLogin" url="/greeting.jsp"/> | </body> | </html> | The loginerrorredirect.jsp is as follows: | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | <html> | <body> | <c:redirect context="/MyPortalLogin" url="/loginerror.jsp"/> | </body> | </html> | I use JSTL to handle the redirect between contexts. I don't know if you handled logging out yet, but I will post how I did it. I created a logout.jsp page that contains the following code: Logout.jsp | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | <html> | <body> | | <% | request.getSession().invalidate(); | response.setHeader("Cache-Control","no-cache"); | response.setHeader("Pragma","no-cache"); | response.setDateHeader ("Expires", 0); | %> | | <c:redirect context="/MyPortalLogin" url="/greeting.jsp"/> | | </body> | </html><a href="/MyPortalLogin/logout.jsp">Logout</a> | This has worked well for me as I can now login/logout from anywhere and when I logout, the user is taken back to the login screen. I hope this helps, I'll try to help you anyway I can. Thanks, John "Howler" Brosan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884861#3884861 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3884861 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
