PDA

View Full Version : Acegi-CAS Listener along with Spring Listener



behrooz
Jan 25th, 2006, 12:08 PM
Dear all,

We are working on a project in which we integrated Acegi and CAS together so that the client application will be directed to the CAS service for authentication.

The problem begins where we have a ContextListener and also CAS has one named "SafeContextListener" which is "final" class.

We would have the idea to creat a new listener to wrap around both these. But as the CAS listener is final this is not feasible.

We would really appreciate if anyone has some idea on this topic.

Thanks in advance,
Behrooz Nobakht

Ben Alex
Jan 25th, 2006, 09:51 PM
I'd suggest you take this up on the CAS list, where you could explain what you're trying to do with the second listener and possibly get some suggestions.

behrooz
Jan 26th, 2006, 12:53 AM
Dear Ben,

Thanks for your advice. I was just thinking that maybe similar experiences.

Extending CAS source may be the last choice.

And, by the way, thanks Ben Alex for your great work on Acegi :-)

Regards,
Behrooz Nobakht

Scott Battaglia
Jan 28th, 2006, 05:14 PM
You don't need to use the SafeContextListener.

The SafeContextListener provided with CAS basically delegates to the ContextListener included with Spring. Its goal is to capture the Exceptions and be able to display them in the browser (versus the usual Tomcat messages) if an application does not deploy correctly.

You can safely replace it with your ContextListener.

-Scott

behrooz
Jan 28th, 2006, 10:05 PM
Dear Scott,

Thanks for your comments and yes after we browsed the source for SafeContextLoaderListener we found the point you mentioned. We just replaced our listener and fortunately it is working well.

Thanks anyway.

Regards,
Behrooz Nobakht

Scott Battaglia
Jan 29th, 2006, 05:15 PM
if you have any more questions about CAS, we host mailing lists on CAS:
http://www.ja-sig.org/products/cas/mailing_lists.html

(note that the site is still under construction and there are some dead links)