mbohun
9/18/2015 - 5:30 AM

ala-cas-2.0.3 / (jasig cas-4.0.4) ticket expiry

ala-cas-2.0.3 / (jasig cas-4.0.4) ticket expiry

<?xml version="1.0" encoding="UTF-8"?>
<!--                                                                                                                                                             
                                                                                                                                                                 
    Licensed to Jasig under one or more contributor license                                                                                                      
    agreements. See the NOTICE file distributed with this work                                                                                                   
    for additional information regarding copyright ownership.                                                                                                    
    Jasig licenses this file to you under the Apache License,                                                                                                    
    Version 2.0 (the "License"); you may not use this file                                                                                                       
    except in compliance with the License.  You may obtain a                                                                                                     
    copy of the License at the following location:                                                                                                               
                                                                                                                                                                 
      http://www.apache.org/licenses/LICENSE-2.0                                                                                                                 
                                                                                                                                                                 
    Unless required by applicable law or agreed to in writing,                                                                                                   
    software distributed under the License is distributed on an                                                                                                  
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY                                                                                                       
    KIND, either express or implied.  See the License for the                                                                                                    
    specific language governing permissions and limitations                                                                                                      
    under the License.                                                                                                                                           
                                                                                                                                                                 
-->
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:p="http://www.springframework.org/schema/p"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
    <description>                                                                                                                                                
        Configuration for the default TicketRegistry which stores the tickets in-memory and cleans them out as specified intervals.                              
    </description>

  <!-- Ticket Registry -->
  <bean id="ticketRegistry" class="org.jasig.cas.ticket.registry.DefaultTicketRegistry" />

        <!--Quartz -->
        <!-- TICKET REGISTRY CLEANER -->
        <bean id="ticketRegistryCleaner" class="org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner"
                p:ticketRegistry-ref="ticketRegistry"
                p:logoutManager-ref="logoutManager"
                p:logUserOutOfServices="false" />

        <bean id="jobDetailTicketRegistryCleaner" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
                p:targetObject-ref="ticketRegistryCleaner"
                p:targetMethod="clean" />

        <bean id="triggerJobDetailTicketRegistryCleaner" class="org.springframework.scheduling.quartz.SimpleTriggerBean"
                p:jobDetail-ref="jobDetailTicketRegistryCleaner"
                p:startDelay="20000"
                p:repeatInterval="5000000" />
</beans>

####Ticket is expired because the time since last use is greater than timeToKillInMilliseconds

2015-09-18 05:17:57,751
DEBUG
[org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy]
<Ticket is expired because the time since last use is greater than timeToKillInMilliseconds>

2015-09-18 05:17:57,751
INFO
[org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner]
<1 tickets found to be removed.>

2015-09-18 05:17:57,751
DEBUG
[org.jasig.cas.ticket.registry.DefaultTicketRegistry]
<Removing ticket [TGT-1-6cCPjBnzh6gZseSpaaCaeEVe7p4LlzGVdBGebLnPFgcvuTyckF-nci-cas4.ala.org.au] from registry>

the original log:

2015-09-18 02:06:09,451 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO: audit:unknown
WHAT: supplied credentials: [TwitterClient+martin.bohun@gmail.com]
ACTION: AUTHENTICATION_SUCCESS
APPLICATION: CAS
WHEN: Fri Sep 18 02:06:09 UTC 2015
CLIENT IP ADDRESS: 152.83.199.216
SERVER IP ADDRESS: nci-cas4.ala.org.au
=============================================================

>   
2015-09-18 02:06:09,452 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Added ticket [TGT-1-6cCPjBnzh6gZseSpaaCaeEVe7p4LlzGVdBGebLnPFgcvuTyckF-nci
-cas4.ala.org.au] to registry.>
2015-09-18 02:06:09,453 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO: audit:unknown
WHAT: TGT-1-6cCPjBnzh6gZseSpaaCaeEVe7p4LlzGVdBGebLnPFgcvuTyckF-nci-cas4.ala.org.au
ACTION: TICKET_GRANTING_TICKET_CREATED
APPLICATION: CAS
WHEN: Fri Sep 18 02:06:09 UTC 2015
CLIENT IP ADDRESS: 152.83.199.216
SERVER IP ADDRESS: nci-cas4.ala.org.au
=============================================================

>   
2015-09-18 02:06:09,453 DEBUG [org.jasig.cas.web.support.CookieRetrievingCookieGenerator] - <Added cookie with name [CASTGC] and value [TGT-1-6cCPjBnzh6gZseSpaaC
aeEVe7p4LlzGVdBGebLnPFgcvuTyckF-nci-cas4.ala.org.au]>
2015-09-18 02:06:09,455 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Attempting to retrieve ticket [TGT-1-6cCPjBnzh6gZseSpaaCaeEVe7p4LlzGVdBGeb
LnPFgcvuTyckF-nci-cas4.ala.org.au]>
2015-09-18 02:06:09,455 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Ticket [TGT-1-6cCPjBnzh6gZseSpaaCaeEVe7p4LlzGVdBGebLnPFgcvuTyckF-nci-cas4.
ala.org.au] found in registry.>
2015-09-18 02:06:09,456 DEBUG [org.jasig.cas.CentralAuthenticationServiceImpl] - <Generated service ticket id [ST-1-FewQY0rxV525S2I5vz76-nci-cas4.ala.org.au] for
 ticket granting ticket [TGT-1-6cCPjBnzh6gZseSpaaCaeEVe7p4LlzGVdBGebLnPFgcvuTyckF-nci-cas4.ala.org.au]>
2015-09-18 02:06:09,456 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Added ticket [ST-1-FewQY0rxV525S2I5vz76-nci-cas4.ala.org.au] to registry.>
2015-09-18 02:06:09,457 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - <Granted service ticket [ST-1-FewQY0rxV525S2I5vz76-nci-cas4.ala.org.au] for servi
ce [https://nci-cas4.ala.org.au/userdetails/myprofile] for user [martin.bohun@gmail.com]>
2015-09-18 02:06:09,457 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Attempting to retrieve ticket [TGT-1-6cCPjBnzh6gZseSpaaCaeEVe7p4LlzGVdBGeb
LnPFgcvuTyckF-nci-cas4.ala.org.au]>
2015-09-18 02:06:09,457 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Ticket [TGT-1-6cCPjBnzh6gZseSpaaCaeEVe7p4LlzGVdBGebLnPFgcvuTyckF-nci-cas4.
ala.org.au] found in registry.>
2015-09-18 02:06:09,457 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO: martin.bohun@gmail.com
WHAT: ST-1-FewQY0rxV525S2I5vz76-nci-cas4.ala.org.au for https://nci-cas4.ala.org.au/userdetails/myprofile
ACTION: SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Fri Sep 18 02:06:09 UTC 2015
CLIENT IP ADDRESS: 152.83.199.216
SERVER IP ADDRESS: nci-cas4.ala.org.au
=============================================================

>  

...

2015-09-18 05:17:57,750 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Beginning ticket cleanup.>
2015-09-18 05:17:57,751 DEBUG [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Attempting to acquire ticket cleanup lock.>
2015-09-18 05:17:57,751 DEBUG [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Acquired lock.  Proceeding with cleanup.>
2015-09-18 05:17:57,751 DEBUG [org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy] - <Ticket is expired because the time since last use is greater than timeToKillInMilliseconds>
2015-09-18 05:17:57,751 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <1 tickets found to be removed.>
2015-09-18 05:17:57,751 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Removing ticket [TGT-1-6cCPjBnzh6gZseSpaaCaeEVe7p4LlzGVdBGebLnPFgcvuTyckF-nci-cas4.ala.org.au] from registry>