Skip to content

Commit

Permalink
Merge pull request apereo#777 from Unicon/tgt-exp-policy-props
Browse files Browse the repository at this point in the history
Allow TGT expiration policy control via CAS properties
  • Loading branch information
SavvasMisaghMoayyed committed Nov 26, 2014
2 parents 0918886 + 1f59250 commit af78612
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
can be used before becoming expired / invalid.
</description>

<!-- Expiration policies -->
<util:constant id="SECONDS" static-field="java.util.concurrent.TimeUnit.SECONDS"/>

<!-- Expiration policies -->
<bean id="serviceTicketExpirationPolicy" class="org.jasig.cas.ticket.support.MultiTimeUseOrTimeoutExpirationPolicy"
c:numberOfUses="1" c:timeToKill="${st.timeToKillInSeconds:10}" c:timeUnit-ref="SECONDS"/>

<!-- TicketGrantingTicketExpirationPolicy: Default as of 3.5 -->
<!-- Provides both idle and hard timeouts, for instance 2 hour sliding window with an 8 hour max lifetime -->
<util:constant id="HOURS" static-field="java.util.concurrent.TimeUnit.HOURS"/>
<bean id="grantingTicketExpirationPolicy" class="org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy"
c:maxTimeToLive="8" c:timeToKill="2" c:timeUnit-ref="HOURS" />
c:maxTimeToLive="${tgt.maxTimeToLiveInSeconds:28800}" c:timeToKill="${tgt.timeToKillInSeconds:7200}" c:timeUnit-ref="SECONDS" />
</beans>

0 comments on commit af78612

Please sign in to comment.