Spring security Spring安全CAS导致重定向循环

Spring security Spring安全CAS导致重定向循环,spring-security,Spring Security,我正在为我的应用程序使用CAS SSO对用户进行身份验证。但是在CAS登录页面上登录之后,我的应用程序web页面抛出重定向循环错误 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:security="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.

我正在为我的应用程序使用CAS SSO对用户进行身份验证。但是在CAS登录页面上登录之后,我的应用程序web页面抛出重定向循环错误

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:security="http://www.springframework.org/schema/security"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">

<security:http entry-point-ref="casEntryPoint"
    auto-config="true">
    <security:intercept-url pattern="/**" access="ROLE_USER" />     
    <security:custom-filter position="CAS_FILTER"
        ref="casFilter"></security:custom-filter>
</security:http>

<security:authentication-manager alias="authenticationManager">
    <security:authentication-provider
        ref="casAuthenticationProvider" />
</security:authentication-manager>

<bean id="serviceProperties" class="org.springframework.security.cas.ServiceProperties">
    <property name="service" value="http://127.0.0.1:8888/pp.html?gwt.codesvr=127.0.0.1:9997" />
    <property name="sendRenew" value="false" />
</bean>

<bean id="casFilter"
    class="org.springframework.security.cas.web.CasAuthenticationFilter">
    <property name="authenticationManager" ref="authenticationManager" />
</bean>

<bean id="casEntryPoint"
    class="org.springframework.security.cas.web.CasAuthenticationEntryPoint">
    <property name="loginUrl" value="https://seqdws1/cas/login" />
    <property name="serviceProperties" ref="serviceProperties" />
</bean>

<bean id="casAuthenticationProvider"
    class="org.springframework.security.cas.authentication.CasAuthenticationProvider">
    <property name="userDetailsService" ref="userService" />
    <property name="serviceProperties" ref="serviceProperties" />
    <property name="ticketValidator">
        <bean class="org.jasig.cas.client.validation.Cas20ServiceTicketValidator">
            <constructor-arg index="0" value="https://seqdws1/cas" />
        </bean>
    </property>
    <property name="key" value="cas" />
</bean>

<security:user-service id="userService">
    <security:user name="joe" password="joe" authorities="ROLE_USER" />
</security:user-service>

</beans>

我是否必须实现预授权场景。我对今年春天的保安很陌生。有人能解释一下我在这里遗漏了什么吗


正在循环的URL是什么(检查日志或从浏览器中调试)?刚刚用屏幕截图更新了帖子。您解决了这个问题吗?我们必须配置预验证吗?