2 changed files with 96 additions and 22 deletions
@ -0,0 +1,96 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<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" xmlns:aop="http://www.springframework.org/schema/aop" |
||||||
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"> |
||||||
|
<description> |
||||||
|
This is the main Spring configuration file with some of the main "core" classes defined. You shouldn't really |
||||||
|
modify this unless you |
||||||
|
know what you're doing! |
||||||
|
</description> |
||||||
|
|
||||||
|
<!-- |
||||||
|
Including this aspectj-autoproxy element will cause spring to automatically |
||||||
|
create proxies around any beans defined in this file that match the pointcuts |
||||||
|
of any aspects defined in this file. |
||||||
|
--> |
||||||
|
<aop:aspectj-autoproxy/> |
||||||
|
|
||||||
|
<!-- |
||||||
|
Declare the TimingAspect that we want to weave into the other beans |
||||||
|
defined in this config file. |
||||||
|
--> |
||||||
|
<bean id="timingAspect" class="org.perf4j.log4j.aop.TimingAspect"/> |
||||||
|
|
||||||
|
|
||||||
|
<!-- Message source for this context, loaded from localized "messages_xx" files --> |
||||||
|
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource" |
||||||
|
p:basename="messages"/> |
||||||
|
|
||||||
|
<bean |
||||||
|
id="servicesManager" |
||||||
|
class="org.jasig.cas.services.DefaultServicesManagerImpl"> |
||||||
|
<constructor-arg index="0" ref="serviceRegistryDao"/> |
||||||
|
</bean> |
||||||
|
|
||||||
|
<!-- |
||||||
|
Job to periodically reload services from service registry. |
||||||
|
This job is needed for a clustered CAS environment since service changes |
||||||
|
in one CAS node are not known to the other until a reload. |
||||||
|
--> |
||||||
|
<bean id="serviceRegistryReloaderJobDetail" |
||||||
|
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean" |
||||||
|
p:targetObject-ref="servicesManager" |
||||||
|
p:targetMethod="reload"/> |
||||||
|
|
||||||
|
<bean id="periodicServiceRegistryReloaderTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean" |
||||||
|
p:jobDetail-ref="serviceRegistryReloaderJobDetail" |
||||||
|
p:startDelay="120000" |
||||||
|
p:repeatInterval="120000"/> |
||||||
|
|
||||||
|
<bean id="persistentIdGenerator" |
||||||
|
class="org.jasig.cas.authentication.principal.ShibbolethCompatiblePersistentIdGenerator" |
||||||
|
p:salt="casrocks"/> |
||||||
|
|
||||||
|
<!-- CentralAuthenticationService --> |
||||||
|
<bean id="centralAuthenticationService" class="org.jasig.cas.CentralAuthenticationServiceImpl" |
||||||
|
p:ticketGrantingTicketExpirationPolicy-ref="grantingTicketExpirationPolicy" |
||||||
|
p:serviceTicketExpirationPolicy-ref="serviceTicketExpirationPolicy" |
||||||
|
p:authenticationManager-ref="authenticationManager" |
||||||
|
p:ticketGrantingTicketUniqueTicketIdGenerator-ref="ticketGrantingTicketUniqueIdGenerator" |
||||||
|
p:ticketRegistry-ref="ticketRegistry" |
||||||
|
p:servicesManager-ref="servicesManager" |
||||||
|
p:persistentIdGenerator-ref="persistentIdGenerator" |
||||||
|
p:uniqueTicketIdGeneratorsForService-ref="uniqueIdGeneratorsMap"/> |
||||||
|
|
||||||
|
<bean id="proxy10Handler" class="org.jasig.cas.ticket.proxy.support.Cas10ProxyHandler"/> |
||||||
|
|
||||||
|
<bean id="proxy20Handler" class="org.jasig.cas.ticket.proxy.support.Cas20ProxyHandler" |
||||||
|
p:httpClient-ref="httpClient" |
||||||
|
p:uniqueTicketIdGenerator-ref="proxy20TicketUniqueIdGenerator"/> |
||||||
|
|
||||||
|
<!-- ADVISORS --> |
||||||
|
<bean id="advisorAutoProxyCreator" |
||||||
|
class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/> |
||||||
|
|
||||||
|
<bean id="validationAnnotationBeanPostProcessor" class="org.jasig.cas.util.CustomBeanValidationPostProcessor" /> |
||||||
|
|
||||||
|
<!-- The scheduler bean wires up any triggers that define scheduled tasks --> |
||||||
|
<bean id="scheduler" class="org.jasig.cas.util.AutowiringSchedulerFactoryBean"/> |
||||||
|
|
||||||
|
<!-- Customizations --> |
||||||
|
|
||||||
|
|
||||||
|
<!-- Make requests synchronous. This ensures that Single Logout has completed before the Logout page renders. --> |
||||||
|
<bean id="httpClient" class="org.jasig.cas.util.HttpClient" |
||||||
|
p:readTimeout="5000" |
||||||
|
p:connectionTimeout="5000"> |
||||||
|
<property name="executorService"> |
||||||
|
<bean class="org.springframework.core.task.support.ExecutorServiceAdapter"> |
||||||
|
<constructor-arg> |
||||||
|
<bean class="org.springframework.core.task.SyncTaskExecutor"/> |
||||||
|
</constructor-arg> |
||||||
|
</bean> |
||||||
|
</property> |
||||||
|
</bean> |
||||||
|
</beans> |
||||||
@ -1,22 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<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" xmlns:aop="http://www.springframework.org/schema/aop" |
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"> |
|
||||||
<description> |
|
||||||
Customizations to the CAS Server. The name starts with zzz to ensure it is the last file loaded to override other bean definitions. |
|
||||||
</description> |
|
||||||
|
|
||||||
<!-- Make requests synchronous. This ensures that Single Logout has completed before the Logout page renders. --> |
|
||||||
<bean id="httpClient" class="org.jasig.cas.util.HttpClient" |
|
||||||
p:readTimeout="5000" |
|
||||||
p:connectionTimeout="5000"> |
|
||||||
<property name="executorService"> |
|
||||||
<bean class="org.springframework.core.task.support.ExecutorServiceAdapter"> |
|
||||||
<constructor-arg> |
|
||||||
<bean class="org.springframework.core.task.SyncTaskExecutor"/> |
|
||||||
</constructor-arg> |
|
||||||
</bean> |
|
||||||
</property> |
|
||||||
</bean> |
|
||||||
</beans> |
|
||||||
Loading…
Reference in new issue