`
01jiangwei01
  • 浏览: 532687 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

cas 系统实例 客户配置(四) 访问受保护资源跳转到自定义登录页面

    博客分类:
  • cas
 
阅读更多

方法和简单。就是在客户端web.xml的配置中。

<filter>   
        <filter-name>CAS Authentication Filter</filter-name>   
        <filter-class>   
            org.jasig.cas.client.authentication.AuthenticationFilter 
            <!--com.baidu.cas.client.validation.RemoteAuthenticationFilter -->
        </filter-class>
        <init-param>   
            <param-name>casServerLoginUrl</param-name>   
            <param-value>http://localhost:8081/casclient4/index.jsp</param-value>
          <!--此处原来配置服务端的登录页面路径,现在配置客户端登录路径-->
        </init-param>
        <init-param>   
            <param-name>serverName</param-name>   
            <param-value>http://localhost:8081</param-value>   
        </init-param>
         
    </filter> 
 
    <filter-mapping>   
        <filter-name>CAS Validation Filter</filter-name>   
        <url-pattern>/sso/*</url-pattern>   
    </filter-mapping>
分享到:
评论
1 楼 kevinpan45 2012-11-13  
直接用AuthenticationFilter会一直重复添加service吧,没有对自定义登录页面放行

相关推荐

Global site tag (gtag.js) - Google Analytics