Hi folks,

upgrading CAS from 3.2.1 to 3.4.2.1 went smooth so far. Authentication via my 
webserviceHandler and rememberMe work perfect.
The only thing I'm struggling with is the new throttle interceptor 
configuration.

The CAS wiki page seems to hold info only for older cas versions and does not 
fit webflow2.

The trigger job works, but the interceptor is not fired on login.

In cas-servlet.xml I added the interceptor to the FlowHandlerMapping:
<ref bean="throttleInterceptor" /> 

and I added a spring-configuration/throttleInterceptorTrigger.xml file:

<?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";
  xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
  
  <bean id="throttleInterceptor" 
class="org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter"
 
   p:failureRangeInSeconds="120"
   p:failureThreshold="2"
  />
  <bean id="throttleInterceptorJobDetail" 
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
    p:targetObject-ref="throttleInterceptor"
    p:targetMethod="decrementCounts" />
  <bean id="periodicThrottleCleanerTrigger" 
class="org.springframework.scheduling.quartz.SimpleTriggerBean"
    p:jobDetail-ref="throttleInterceptorJobDetail"
    p:startDelay="0"
    p:repeatInterval="1000" />
</beans>

Do I miss something else?


Robert


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to