xh22570575 2013-09-05 16:34
浏览 180

求大神解决CAS与spring Security2.0问题

最近一直在研究CAS整合spring Security2.0,遇到了不少问题,网上的关于2.0的帖子实在太少了
我配置了applicationContext-springSecurity.xml文件,但是登录完CAS后,出现了页面重定向循环,求大神帮忙指点指点,我的xml是:

<?xml version="1.0" encoding="UTF-8"?>
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">




<beans:bean id="casEntryPoint"  
    class="org.springframework.security.ui.cas.CasProcessingFilterEntryPoint">  
    <beans:property name="loginUrl"  
        value="http://vest.cn:8080/cas/login" />  
    <beans:property name="serviceProperties"  
        ref="serviceProperties" />  
</beans:bean>   

<beans:bean id="serviceProperties"  
    class="org.springframework.security.ui.cas.ServiceProperties">  
    <beans:property name="service"  
        value="http://vest.cn:8080/xxx/login" />  
    <beans:property name="sendRenew" value="false" />  
</beans:bean> 

<beans:bean id="casProcessingFilter"

class="org.springframework.security.ui.cas.CasProcessingFilter">



/beans:bean
class="org.springframework.security.providers.cas.CasAuthenticationProvider">





value="http://vest.cn:8080/cas" />
/beans:bean
/beans:property

/beans:bean

  <beans:bean id="userDetailsService "

class="com.xxx.rmplatform.security.userdetails.impl.UserDetailsHibernateImpl">


/beans:bean
class="com.xxx.rmplatform.components.security.userdetails.impl.ExpandPasswordEncoder" />

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
    • ¥15 有赏,i卡绘世画不出
    • ¥15 如何用stata画出文献中常见的安慰剂检验图
    • ¥15 c语言链表结构体数据插入
    • ¥40 使用MATLAB解答线性代数问题
    • ¥15 COCOS的问题COCOS的问题
    • ¥15 FPGA-SRIO初始化失败
    • ¥15 MapReduce实现倒排索引失败
    • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
    • ¥15 找一位技术过硬的游戏pj程序员