Hi all,

I'm trying to extend CAS to set a domain-wide cookie on login and remove the cookie on logout. I'm following the suggestions from a 2006 CAS mailing list post, but unfortunately, I'm running into problems setting an advice on SendTicketGrantingTicketAction. An advice set on other (non-webflow) parts of CAS seems fine.

In Jan 2006, Scott offered suggestions to Case Western Reserve on how to accomplish a domain-wide cookie in CAS 3.0.4:
http://tp.its.yale.edu/pipermail/cas/2006-January/002003.html

Following those steps, I'm trying to set an advice using the following pointcut:
<aop:pointcut id="ticketCookieSet"
expression="execution(* org.jasig.cas.web.flow.SendTicketGrantingTicketAction.doExecute(..))"
    />

However, it appears the advice is never called. To test, I changed my pointcut as follows and the advice ran as expected: "execution(* org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(..))"

Looking for answers why the advice method was not being called from the webflow, I ran across the following forum post:
http://forum.springsource.org/showthread.php?t=46692

That post suggests it may not be possible to use AOP on webflow methods. Can someone with Spring expertise confirm?

As to other ways to set a domain-wide cookie, maybe adding an action to the login webflow and setting the cookie there? Any other suggestions on a clean way to add it would be most appreciated.

Thanks,
John
--
John Thiltges
Information Services
University of Nebraska - Lincoln

--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to