Hi there,

I am facing of infinite redirect loop with cas-services management 
overlay-4.1.7 and my cas version is also 4.1.7

After checking logs I get the following observation ->

Once the service ticket is validated, it again goes to authentication 
filter and creates a service URL

WHO: audit:unknown
WHAT: ST-324-****-cas01.example.org
ACTION: SERVICE_TICKET_VALIDATED
APPLICATION: CAS
WHEN: Date
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

>
2016-06-21 07:02:10,849 DEBUG 
[org.jasig.cas.client.validation.Cas20ServiceTicketValidator] - <Server 
response: 



<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
<cas:authenticationSuccess>
<cas:user>emai_id</cas:user>
        
        
</cas:authenticationSuccess>
</cas:serviceResponse>>
2016-06-21 07:02:10,852 DEBUG 
[org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter] 
- <Successfully authenticated user: email_id>
2016-06-21 07:02:10,852 DEBUG 
[org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter] 
- <Redirecting after successful ticket validation.>
2016-06-21 07:02:11,890 DEBUG 
[org.jasig.cas.client.authentication.AuthenticationFilter] - <no ticket and 
no assertion found>
2016-06-21 07:02:11,890 DEBUG 
[org.jasig.cas.client.authentication.AuthenticationFilter] - <Constructed 
service url: ********/cas-services>
2016-06-21 07:02:11,891 DEBUG 
[org.jasig.cas.client.authentication.AuthenticationFilter] - <redirecting 
to "***************************>
2016-06-21 07:02:12,555 DEBUG 
[org.springframework.webflow.mvc.servlet.FlowHandlerMapping] - <Mapping 
request with URI '/cas/login' to flow with id 'login'>
2016-06-21 07:02:12,555 DEBUG 
[org.springframework.webflow.executor.FlowExecutorImpl] - <Launching new 
execution of flow 'login' with input map['service' -> 
'https://url:port/cas-services']>
2016-06-21 07:02:12,555 DEBUG 
[org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl] 
- <Getting FlowDefinition with id 'login'>
2016-06-21 07:02:12,555 DEBUG 
[org.springframework.webflow.engine.impl.FlowExecutionImplFactory] - 
<Creating new execution of 'login'>
2016-06-21 07:02:12,556 DEBUG 
[org.springframework.webflow.engine.impl.FlowExecutionImpl] - <Starting in 
org.springframework.webflow.mvc.servlet.MvcExternalContext@427d8bbd with 
input map['service' -> 'https://url:port/cas-services']>
2016-06-21 07:02:12,556 DEBUG [org.springframework.webflow.engine.Flow] - 
<Creating [FlowVariable@6dadc36f name = 'credential', valueFactory = 
[BeanFactoryVariableValueFactory@2af9e4aa type = 
RememberMeUsernamePasswordCredential]]>
2016-06-21 07:02:12,556 DEBUG 
[org.springframework.webflow.execution.ActionExecutor] - <Executing 
[EvaluateAction@1633e82 expression = initialFlowSetupAction, 
resultExpression = [null]]>
2016-06-21 07:02:12,556 DEBUG 
[org.springframework.webflow.execution.AnnotatedAction] - <Putting action 
execution attributes map[[empty]]>
2016-06-21 07:02:12,556 DEBUG 
[org.springframework.webflow.execution.ActionExecutor] - <Executing 
org.jasig.cas.web.flow.InitialFlowSetupAction@3b81cea3>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.execution.ActionExecutor] - <Finished 
executing org.jasig.cas.web.flow.InitialFlowSetupAction@3b81cea3; result = 
success>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.execution.AnnotatedAction] - <Clearing action 
execution attributes map[[empty]]>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.execution.ActionExecutor] - <Finished 
executing [EvaluateAction@1633e82 expression = initialFlowSetupAction, 
resultExpression = [null]]; result = success>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.engine.ActionState] - <Entering state 
'ticketGrantingTicketCheck' of flow 'login'>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.execution.ActionExecutor] - <Executing 
[EvaluateAction@9a235e7 expression = ticketGrantingTicketCheckAction, 
resultExpression = [null]]>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.execution.AnnotatedAction] - <Putting action 
execution attributes map[[empty]]>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.execution.ActionExecutor] - <Executing 
org.jasig.cas.web.flow.TicketGrantingTicketCheckAction@7880d5a1>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.execution.ActionExecutor] - <Finished 
executing org.jasig.cas.web.flow.TicketGrantingTicketCheckAction@7880d5a1; 
result = valid>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.execution.AnnotatedAction] - <Clearing action 
execution attributes map[[empty]]>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.execution.ActionExecutor] - <Finished 
executing [EvaluateAction@9a235e7 expression = 
ticketGrantingTicketCheckAction, resultExpression = [null]]; result = valid>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.engine.Transition] - <Executing 
[Transition@6dd4db1a on = valid, to = hasServiceCheck]>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.engine.Transition] - <Exiting state 
'ticketGrantingTicketCheck'>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.engine.DecisionState] - <Entering state 
'hasServiceCheck' of flow 'login'>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.engine.Transition] - <Executing 
[Transition@4f366fff on = flowScope.service != null, to = 
renewRequestCheck]>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.engine.Transition] - <Exiting state 
'hasServiceCheck'>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.engine.DecisionState] - <Entering state 
'renewRequestCheck' of flow 'login'>
2016-06-21 07:02:12,557 DEBUG 
[org.springframework.webflow.engine.Transition] - <Executing 
[Transition@7ef2f6f9 on = *, to = generateServiceTicket]>
2016-06-21 07:02:12,558 DEBUG 
[org.springframework.webflow.engine.Transition] - <Exiting state 
'renewRequestCheck'>
2016-06-21 07:02:12,558 DEBUG 
[org.springframework.webflow.engine.ActionState] - <Entering state 
'generateServiceTicket' of flow 'login'>
2016-06-21 07:02:12,558 DEBUG 
[org.springframework.webflow.execution.ActionExecutor] - <Executing 
[EvaluateAction@351cf04 expression = generateServiceTicketAction, 
resultExpression = [null]]>
2016-06-21 07:02:12,558 DEBUG 
[org.springframework.webflow.execution.AnnotatedAction] - <Putting action 
execution attributes map[[empty]]>
2016-06-21 07:02:12,558 DEBUG 
[org.springframework.webflow.execution.ActionExecutor] - <Executing 
org.jasig.cas.web.flow.GenerateServiceTicketAction@6fee114f>
2016-06-21 07:02:12,558 INFO 
[org.jasig.cas.CentralAuthenticationServiceImpl] - <Granted ticket 
[ST-325-****-cas01.example.org] for service [https://url:port/cas-services] 
for user email_id]>
2016-06-21 07:02:12,558 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit 
trail record BEGIN
=============================================================
WHO: email_id
WHAT: ST-325-******-cas01.example.org for https:/url:port/cas-services
ACTION: SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Date
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================



*However the correct approach will be after Ticket Validation Filter, the 
control should go to DefaultServiceManagerImpl to check for registered 
services  *

Cas-services-management overlay works fine in localhost but the same is 
stuck in redirect loop on server and specifically chrome. 

Regards,
Sankalp 



-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ced42608-d21c-4e38-93fd-0b7e92baaa6e%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to