Thanks, I've started poking around there. I added a log message to
GenerateServiceTicketAction#doExecute(), because it swallows TicketException
instead of logging it before returning an error. It looks like the cause is the
TicketGrantingTicket is null, resulting in:
2013-01-23 12:19:18,024 ERROR
[org.jasig.cas.web.flow.GenerateServiceTicketAction] - <Failed!>
org.jasig.cas.ticket.InvalidTicketException
at
org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket(CentralAuthenticationServiceImpl.java:194)
at
org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket(CentralAuthenticationServiceImpl.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
2013-01-23 12:19:18,027 DEBUG
[org.springframework.webflow.execution.ActionExecutor] - <Finished executing
org.jasig.cas.web.flow.GenerateServiceTicketAction@3eb2aa1c; result = error>
2013-01-23 12:19:18,027 DEBUG
[org.springframework.webflow.execution.AnnotatedAction] - <Clearing action
execution attributes map[[empty]]>
2013-01-23 12:19:18,027 DEBUG
[org.springframework.webflow.execution.ActionExecutor] - <Finished executing
[EvaluateAction@6e5d8897 expression = generateServiceTicketAction,
resultExpression = [null]]; result = error>
2013-01-23 12:19:18,027 DEBUG [org.springframework.webflow.engine.Transition] -
<Executing [Transition@487011c on = error, to = generateLoginTicket]>
2013-01-23 12:19:18,027 DEBUG [org.springframework.webflow.engine.Transition] -
<Exiting state 'generateServiceTicket'>
2013-01-23 12:19:18,027 DEBUG [org.springframework.webflow.engine.ActionState]
- <Entering state 'generateLoginTicket' of flow 'login'>
2013-01-23 12:19:18,027 DEBUG
[org.springframework.webflow.execution.ActionExecutor] - <Executing
[EvaluateAction@3b59d796 expression =
generateLoginTicketAction.generate(flowRequestContext), resultExpression =
[null]]>
2013-01-23 12:19:18,027 DEBUG
[org.springframework.webflow.execution.AnnotatedAction] - <Putting action
execution attributes map[[empty]]>
2013-01-23 12:19:18,029 DEBUG
[org.jasig.cas.web.flow.GenerateLoginTicketAction] - <Generated login ticket
LT-1-j5anwaxGRRMOsENkblO9fP0NicDrJr>
2013-01-23 12:19:18,030 DEBUG
[org.springframework.webflow.execution.AnnotatedAction] - <Clearing action
execution attributes map[[empty]]>
2013-01-23 12:19:18,030 DEBUG
[org.springframework.webflow.execution.ActionExecutor] - <Finished executing
[EvaluateAction@3b59d796 expression =
generateLoginTicketAction.generate(flowRequestContext), resultExpression =
[null]]; result = generated>
2013-01-23 12:19:18,030 DEBUG [org.springframework.webflow.engine.Transition] -
<Executing [Transition@6248fe00 on = generated, to = viewLoginForm]>
2013-01-23 12:19:18,031 DEBUG [org.springframework.webflow.engine.Transition] -
<Exiting state 'generateLoginTicket'>
2013-01-23 12:19:18,031 DEBUG [org.springframework.webflow.engine.ViewState] -
<Entering state 'viewLoginForm' of flow 'login'>
Any thoughts on why I don't have a TicketGrantingTicket? Is it related to the
fact that I'm throwing an exception on a successful login in order to get
navigation in the webflow?
Thanks,
Eric Stein
-----Original Message-----
From: jleleu [mailto:[email protected]]
Sent: Wednesday, January 23, 2013 9:54 AM
To: [email protected]
Subject: RE:[cas-user] login-webflow.xml confusion
Hi,
"webflow" logs are always hard to read, though it seems that the webflow is
resumed properly :
2013-01-23 07:29:05,481 DEBUG
[org.springframework.webflow.engine.impl.FlowExecutionImpl] - <Resuming in
org.springframework.webflow.mvc.servlet.MvcExternalContext@738df65f>
2013-01-23 07:29:05,481 DEBUG [org.springframework.webflow.engine.Flow] -
<Restoring [FlowVariable@4eed15c7 name = 'credentials', valueFactory =
[BeanFactoryVariableValueFactory@2f30e44c type = UsernamePasswordCredentials]]>
2013-01-23 07:29:05,481 DEBUG
[org.springframework.webflow.mvc.view.AbstractMvcView] - <Processing user event
'eulaConfirmed'>
2013-01-23 07:29:05,481 DEBUG
[org.springframework.webflow.mvc.view.AbstractMvcView] - <No model to bind to;
done processing user event>
2013-01-23 07:29:05,481 DEBUG [org.springframework.webflow.engine.ViewState] -
<Event 'eulaConfirmed' returned from view [ServletMvcView@6d2a123d view =
org.springframework.web.servlet.view.JstlView: name 'locusEulaView'; URL
[/WEB-INF/view/jsp/default/ui/locusEulaView.jsp]]>
2013-01-23 07:29:05,481 DEBUG [org.springframework.webflow.engine.Transition] -
<Executing [Transition@65139ac8 on = eulaConfirmed, to =
sendTicketGrantingTicket]>
2013-01-23 07:29:05,481 DEBUG [org.springframework.webflow.engine.Transition] -
<Exiting state 'confirmEULAView'>
2013-01-23 07:29:05,482 DEBUG [org.springframework.webflow.engine.ActionState]
- <Entering state 'sendTicketGrantingTicket' of flow 'login'>
The authentication seems to be successfull :
2013-01-23 07:29:05,483 DEBUG
[org.jasig.cas.web.support.CookieRetrievingCookieGenerator] - <Added cookie
with name [CASTGC] and value
[TGT-1-ae03kSrGlyE5uAqdAO71OcCrhiHkg6d9NBYhQ6nWnLwAP5uUan-cas01.example.org]>
But the service ticket creation fails. I would recommend enabling logs or doing
some debugging in the GenerateServiceTicketAction class...
Best regards,
Jérôme
--
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
--
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