Spring Security and CAS Integration

前端 未结 3 548
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-04 12:25

Can anyone paste simple steps to integrate Spring security and CAS over here for single sign on and single sign out. Note I dont want any role based access.I have a web appl

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-04 13:27

    Anyway single sign on is done..It took lot of time to figureout but trust me if you have a mind setup that you want to do it then anyway u will succeed ..here is the solution.. Here is my updated spring-security.xml

    
    
    
    
            
            
            
        
            
        
    
        
            
        
    
    
            
            
                
                    
                
            
            
                
                    
                
            
            
            
        
    
        
            
            
        
    
        
            
            
            
                
                    
                    
                    
    
                    
            
            
        
    
       
        
            
            
        
    
        
        
      
      
      
        
        
          
        
        
      
    
    
    

    my updated web.xml

    
    
      Spring3MVC
      
            contextConfigLocation
            
                /WEB-INF/spring-rootcontext.xml
                /WEB-INF/spring-security.xml
            
        
          
            springSecurityFilterChain
            org.springframework.web.filter.DelegatingFilterProxy
        
    
        
          springSecurityFilterChain
          /*
        
        
        
            org.springframework.web.context.ContextLoaderListener
        
    
    
      
        index.jsp
      
    
      
        spring
        
                org.springframework.web.servlet.DispatcherServlet
            
        1
      
      
        spring
        /app/*
      
     
           CAS Single Sign Out Filter
           org.jasig.cas.client.session.SingleSignOutFilter
        
     
           CAS Single Sign Out Filter
           /*
        
        
            org.jasig.cas.client.session.SingleSignOutHttpSessionListener
        
    
    
    

    I resolved this exception javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source) by copying CAS server "cacerts" file from java\jre\lib\security of CAS server to my local java\jre\lib\security and exception was smoked.

提交回复
热议问题