ok i think i figure it out but now when I use the code below it just gives 
me no errors (it never hits my debug statements) and a 500 error

Last log
2010-05-07 09:54:07,412 DEBUG 
[org.jasig.cas.web.flow.SendTicketGrantingTicketAction] - Action 
'SendTicketGrantingTicketAction' completed execution; result is 'success'

cas-servlet.xml
<bean id="createLTPATokenAction" class=
"com.jbhunt.apps.cas.web.flow.LTPATokenCreateAction" />
---------------------------------------------------------------------------------------------------------------
login-webflow.xml
        <action-state id="sendTicketGrantingTicket">
                <action bean="sendTicketGrantingTicketAction" />
                <transition on="success" to="createLTPAToken" />
                <!-- <transition on="success" to="serviceCheck" /> -->
        </action-state>
 
        <action-state id="createLTPAToken">
                <action bean="createLTPATokenAction" />
                <transition on="success" to="serviceCheck" />
        </action-state>
---------------------------------------------------------------------------------------------------------------
LTPATokenCreateAction.java
package com.jbhunt.apps.cas.web.flow;

import org.jasig.cas.authentication.principal.WebApplicationService;
import org.jasig.cas.web.support.WebUtils;
import org.springframework.webflow.action.AbstractAction;
import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execution.RequestContext;

import com.jbhunt.biz.security.sso.ltpa.LtpaUtil;

public final class LTPATokenCreateAction extends AbstractAction{
 
        protected Event doExecute(RequestContext context) throws Exception 
{
                logger.debug("starting LTPA Action");
 
                 final WebApplicationService service = WebUtils.getService
(context);
                 final String remoteUser = service.getId();
                 logger.debug("midway through LTPA Action");
                if(remoteUser != null){
                        LtpaUtil.setCookie(remoteUser,WebUtils.
getHttpServletResponse(context),null);
                }
                logger.debug("finished LTPA Action");
                return success();
        }

}
---------------------------------------------------------------------------------------------------------------

Chris Whittle
SWAT Team Developer
J.B. Hunt Transport Services, Inc.
Office Phone:(479) 419-3122
Ext:73122
Fax Phone:(479) 820-1769
[email protected]
What's your next move?TM
Intermodal | Dedicated | Truckload | LTL | Delivery | Refrigerated | 
Flatbed | Expedited 



Scott Battaglia <[email protected]> 
05/06/2010 10:36 PM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: [cas-dev] Adding Code After Authentication






Just inject your own action into the web flow.  In Web Flow 2, its even 
easier because it technically doesn't have to be an Action class.

Cheers,
Scott


On Thu, May 6, 2010 at 2:06 PM, <[email protected]> wrote:

I know I have seen a WIKI on this before but I can't find it... We have 
code that creates a lotus notes LTPA token that gives us SSO with those 
applications and I want to have it work once the user is authenticated but 
before they are redirected.... Thanks

Chris Whittle
SWAT Team Developer
J.B. Hunt Transport Services, Inc.
Office Phone:(479) 419-3122
Ext:73122
Fax Phone:(479) 820-1769
[email protected]
What's your next move?TM
Intermodal | Dedicated | Truckload | LTL | Delivery | Refrigerated | 
Flatbed | Expedited 
-- 
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-dev

-- 
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-dev

-- 
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-dev

<<image/gif>>

<<image/gif>>

Reply via email to