This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Jaas on jboss integration

Jan 12th, 2011, 09:30 AM

Hello,

I'm trying to integrate spring security for two web application on Jboss. I'm using FORM authentication with JAAS realm. I have also enabled simple single sign on provided by jboss (org.apache.catalina.authenticator.SingleSignOn).
Now i want to introduce spring security and initialize security context with principal provided by jboss JAAS mechanism. If i use preAuthentication, the filter is invoked before HTTP request is populated with principal obtained from JAAS form login. If i use spring form login instead of Jboss JAAS, then SSO doesn't work.
Does someone have experience with this kind of integration?