openjweb平台配置cas server单点登录

web.xml:

 


 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
 openjweb
 
  contextConfigLocation
  
    /WEB-INF/classes/applicationContext-security-cas.xml
   /WEB-INF/classes/core-service-demo.xml
   /WEB-INF/classes/system-config.xml
   /WEB-INF/classes/CasContext.xml
  

 

 
  log4jConfigLocation
  /WEB-INF/classes/log4j.properties
 

 
   
         Character Encoding
         org.openjweb.core.filter.CharacterEncodingFilter
        
             encoding
             UTF-8
        

        
             ignore
             false
            
        

   

 
 
  struts2
  
   org.apache.struts2.dispatcher.FilterDispatcher
  

 

 
 
 

     
         Character Encoding
         *.jsp
   
 
   
   
     
         Character Encoding
         *.action
   
 
  
  
   
    CAS Single Sign Out Filter
    org.jasig.cas.client.session.SingleSignOutFilter
 

  
   
        springSecurityFilterChain
        org.springframework.web.filter.DelegatingFilterProxy
   

 
 
    CAS Single Sign Out Filter
    /*
 

   
   
      springSecurityFilterChain
      /*
   

   
 
   
 
 

 
  struts2
  /*
 

 
 
  org.jasig.cas.client.session.SingleSignOutHttpSessionListener
 

 

 
  
   org.springframework.web.context.ContextLoaderListener
  

 

 
 
  
   org.springframework.security.ui.session.HttpSessionEventPublisher
  

 

 
  
   org.springframework.web.util.Log4jConfigListener
  

 

 
 
  action
  
   org.apache.struts.action.ActionServlet
  

  
   config
   /WEB-INF/struts-config.xml
  

  
   debug
   3
  

  
   detail
   3
  

  0
 
     
 
 
  dwr-invoker
    org.directwebremoting.servlet.DwrServlet
  
   debug
   true
  

       
            crossDomainSessionSecurity     
            false     
  

         3
 

 
   
        Connector
        com.fredck.FCKeditor.connector.ConnectorServlet
       
            baseDir
            /resupload/
       

       
            debug
            false
       

        1
   

 
   
        SimpleUploader
        com.fredck.FCKeditor.uploader.SimpleUploaderServlet
       
            baseDir
            /resupload/
       

       
            debug
            false
       

       
            enabled
            true
       

       
            AllowedExtensionsFile
           
       

       
            DeniedExtensionsFile
            php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi
       

       
            AllowedExtensionsImage
            jpg|gif|jpeg|png|bmp
       

       
            DeniedExtensionsImage
           
       

       
            AllowedExtensionsFlash
            swf|fla
       

       
            DeniedExtensionsFlash
           
       

        2
   

 

 
   
  dwr-invoker
  /dwr/*
 

 
  
  action
  *.do
 


  30
 

 
  /secure/redirect.jsp
 

 
 
  
   http://www.springframework.org/security/tags
  

  /WEB-INF/security.tld
 

 
  /WEB-INF/struts-bean.tld
  /WEB-INF/tld/struts-bean.tld
 

 
  /WEB-INF/struts-html.tld
  /WEB-INF/tld/struts-html.tld
 

 
  /WEB-INF/struts-logic.tld
  /WEB-INF/tld/struts-logic.tld
 

 
  /WEB-INF/struts-nested.tld
  
   /WEB-INF/tld/struts-nested.tld
  

 

 
  /WEB-INF/struts-tiles.tld
  /WEB-INF/tld/struts-tiles.tld
 


 
 


 

applicationContext-security-cas.xml:

    xmlns:sec="http://www.springframework.org/schema/security"
    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.xsd">
  
   
       
    
       
   

 
   

   
       
       
       
       
       
       
       
   

   
       
       
   

   
       
       
       
       
         
          
          
              
           
           

       

       
   

   
   

   
       
       
   

 
     class="org.springframework.security.providers.dao.DaoAuthenticationProvider">
  
  
  
 

   class="org.springframework.security.providers.encoding.Md5PasswordEncoder" />
   class="org.openjweb.core.springsecurity.UserDetailsServiceImpl">
  
   
  

 

   class="org.springframework.security.providers.dao.cache.EhCacheBasedUserCache">
  
 

   class="org.springframework.cache.ehcache.EhCacheFactoryBean">
  
  
 

   class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
     value="classpath:ehcache-security.xml" />
 

   class="org.springframework.security.intercept.web.FilterSecurityInterceptor">
  
     ref="authenticationManager" />
     ref="accessDecisionManager" />
  
     ref="databaseFilterInvocationDefinitionSource" />
 

   class="org.springframework.security.vote.AffirmativeBased">
  
   
         class="org.springframework.security.vote.RoleVoter">
     
    

   
  
 
   class="org.springframework.security.intercept.web.DefaultFilterInvocationDefinitionSource">
     type="org.springframework.security.util.UrlMatcher"
   ref="antUrlPathMatcher" />
  
 

   class="org.springframework.security.util.AntUrlPathMatcher" />

   class="org.openjweb.core.springsecurity.RequestMapFactoryBean"
  init-method="init">
  
 

 

 

转载于:https://www.cnblogs.com/ajuanabc/archive/2009/08/05/2462728.html

你可能感兴趣的:(ui,java,php)