I've been trying to fix this for the last couple of days without luck. Roller is redirecting me CAS and after I login then CAS returns me to Roller. However the Roller page that is displayed is the login page which suggests that:
1) Roller does not know I am logged into CAS
2) CAS did not actually log me in
Before I turned up debug, this was shown in the logs:
2008-05-14 13:52:18,056 INFO [org.jasig.cas.web.flow.InitialFlowSetupAction] - <Setting path for cookies to: /tootired.net/cas>
2008-05-14 13:52:28,758 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <AuthenticationHandler: org.jasig.cas.adaptors.jdbc.SearchModeSearchDatabaseAuthenticationHandler successfully authenticated the user which provided the following credentials: gavin>
2008-05-14 13:52:28,812 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - <Granted service ticket [ST-1-rKwVNDSDPJG6xSRoUeBs-cas] for service
which seems to set a cookie for /tootired.net/cas. Roller is at /tootired.net/blog but I am assuming that is not a problem as CAS is cross domain compatible out of the box. It then grants a ticket and everything looks fine; excepet that I am taken back to the Roller log in page.
Turning up debug gives the following:
<Added ticket [ST-2-ac1P9qmDOvDqcDCaHNga-cas] to registry.>
2008-05-14 13:18:53,566 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - <Granted service ticket [ST-2-ac1P9qmDOvDqcDCaHNga-cas] for service [
http://localhost:8080/tootired.net/blog/roller_j_security_check] for user [gavin]>
2008-05-14 13:18:53,566 DEBUG [org.jasig.cas.web.flow.GenerateServiceTicketAction] - <Action 'GenerateServiceTicketAction' completed execution; result is 'success'>
...
2008-05-14 13:18:53,567 DEBUG [org.springframework.webflow.engine.impl.RequestControlContextImpl] - <Ending active session [FlowSessionImpl@1717334 flow = 'login-webflow', state = 'redirect', scope = map['service' ->
http://localhost:8080/tootired.net/blog/roller_j_security_check, 'warnCookieValue' -> false, 'ticketGrantingTicketId' -> 'TGT-1-KdoZCbAzOJB1szHAqy0uYrBW5YCHuqsa4moZlyvKueITMmHtR1-cas'], flashMap = map[[empty]], status = Active]; exposed session output is map[[empty]]>
...
- <Publishing event in context [org.springframework.web.context.support.XmlWebApplicationContext@37086a]: ServletRequestHandledEvent: url=[/cas/login]; client=[127.0.0.1]; method=[GET]; servlet=[cas]; session=[0752DB3F87EB7B8D3E6DC29AED166448]; user=[null]; time=[5ms]; status=[OK]>
2008-05-14 13:18:53,568 DEBUG [org.springframework.web.context.support.XmlWebApplicationContext] - <Publishing event in context [org.springframework.web.context.support.XmlWebApplicationContext@27de24]: ServletRequestHandledEvent: url=[/cas/login]; client=[127.0.0.1]; method=[GET]; servlet=[cas]; session=[0752DB3F87EB7B8D3E6DC29AED166448]; user=[null]; time=[5ms]; status=[OK]>
I am not sure if there is anything in there that provides more information. Maybe the 'user=[null]' on the last line or the 'exposed session output is map[[empty]'?
Any assistance would be appreciated as I am lost as to what to try next?