update current cas login webflow

51 views
Skip to first unread message

Pablo Vidaurri

unread,
Jan 14, 2018, 12:01:17 PM1/14/18
to CAS Community
I created a class that extends AbstractCasWebflowConfigurer to modify the webflow instead of modifying xml directly. I can define a new action-state with transitions but I can't seem to modify an already existing one.

For realSubmit action-state within login webflow:

<action-state id="realSubmit">
   <transition on="warn" to="warn"/>
   <transition on="success" to="sendTicketGrantingTicket"/>
   .
   .
   .
</action-state> 

For "success", how can I programatically change the transition from "sendTicketGrantingTicket" to "doMyCustomAction"? 
Would I have to define the entire action state or can I just update the single transition? 

I have the org.springframework.webflow.engine.Flow Object but I don't see an appropriate method to update the transition.

Thanks.
-psv

Ray Bon

unread,
Jan 15, 2018, 1:11:12 PM1/15/18
to cas-...@apereo.org
Pablo,

In the attached file, I insert a send cookie action on login and a remove cookie action on logout. The steps mirror the xml changes.

Ray
-- 
Ray Bon
Programmer analyst
Development Services, University Systems
2507218831 | CLE 019 | rb...@uvic.ca
UvicSsoCookieWebflowConfigurer.java
Reply all
Reply to author
Forward
0 new messages