首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

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

2012-06-28 
cas 系统实例 客户配置(四) 访问受保护资源跳转到自定义登录页面方法和简单。就是在客户端web.xml的配置中。

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>

热点排行