java cas 单点登录web.xml配置

  1.   
  2.       
  3.       
  4.     <filter>  
  5.         <filter-name>CAS Single Sign Out Filterfilter-name>  
  6.         <filter-class>org.jasig.cas.client.session.SingleSignOutFilterfilter-class>  
  7.     filter>  
  8.     <filter-mapping>  
  9.         <filter-name>CAS Single Sign Out Filterfilter-name>  
  10.         <url-pattern>/*url-pattern>  
  11.     filter-mapping>  
  12.       
  13.     <listener>  
  14.         <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListenerlistener-class>  
  15.     listener>  
  16.       
  17.       
  18.     <filter>  
  19.         <filter-name>CASFilterfilter-name>  
  20.         <filter-class>org.jasig.cas.client.authentication.AuthenticationFilterfilter-class>  
  21.         <init-param>  
  22.             <param-name>casServerLoginUrlparam-name>  
  23.               
  24.             <param-value>http://CAS服务端所在服务器IP:8080/cas/loginparam-value>  
  25.         init-param>  
  26.         <init-param>  
  27.             <param-name>serverNameparam-name>  
  28.               
  29.             <param-value>http://具体web应用程序所在服务器IP:8080param-value>  
  30.         init-param>  
  31.     filter>  
  32.     <filter-mapping>  
  33.         <filter-name>CASFilterfilter-name>  
  34.         <url-pattern>/*url-pattern>  
  35.     filter-mapping>  
  36.        
  37.       
  38.     <filter>  
  39.         <filter-name>CAS Validation Filterfilter-name>  
  40.         <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilterfilter-class>  
  41.         <init-param>  
  42.             <param-name>casServerUrlPrefixparam-name>  
  43.               
  44.             <param-value>http://CAS服务端所在服务器IP:8080/casparam-value>  
  45.         init-param>  
  46.         <init-param>  
  47.             <param-name>serverNameparam-name>  
  48.               
  49.             <param-value>http://具体web应用程序所在服务器IP:8080param-value>  
  50.         init-param>  
  51.         <init-param>  
  52.           <param-name>renewparam-name>  
  53.           <param-value>falseparam-value>  
  54.         init-param>  
  55.         <init-param>  
  56.           <param-name>gatewayparam-name>  
  57.           <param-value>falseparam-value>  
  58.         init-param>  
  59.     filter>  
  60.     <filter-mapping>  
  61.         <filter-name>CAS Validation Filterfilter-name>  
  62.         <url-pattern>/*url-pattern>  
  63.     filter-mapping>  
  64.        
  65.       
  66.     <filter>  
  67.         <filter-name>CasForInvokeContextFilterfilter-name>  
  68.         <filter-class>com.cm.demo.filter.CasForInvokeContextFilterfilter-class>  
  69.         <init-param>  
  70.           <param-name>appIdparam-name>  
  71.           <param-value>a5ea611bbff7474a81753697a1714fb0param-value>  
  72.         init-param>  
  73.     filter>  
  74.     <filter-mapping>  
  75.         <filter-name>CasForInvokeContextFilterfilter-name>  
  76.         <url-pattern>/*url-pattern>  
  77.     filter-mapping>  
  78.       

你可能感兴趣的:(java编程,java,cas,单点登录)