Cassso integrated with java + php (discuz, bbs)

Source: Internet
Author: User
Tags http authentication
Cassso integration java + php (discuz, bbs) configuration cas setup preparations: cas-server-3.4.4cas-client-3.2.0apache-tomcat-6.0.14? Remove https authentication and change to ht cas sso to integrate java + php (discuz, bbs) configuration

Preparations for building cas:

Cas-server-3.4.4

Cas-client-3.2.0

Apache -- tomcat-6.0.14

?

Remove https authentication and change it to http authentication

1. go to the WEB-INF \ spring-configuration Directory
Open the warnCookieGenerator. xml file
Change p: cookieSecure to false.

2. open the ticketGrantingTicketCookieGenerator. xml file.
Similarly, change p: cookieSecure to false.

3. open WEB-INF \ deployerConfigContext. xml file
Find org. jasig. cas. authentication. handler. support. HttpBasedServiceCredentialsAuthenticationHandler
Modify the code block as follows: (add p: requireSecure = "false "? )

 

?

Java client configuration

 
 
         
  
   
Org. jasig. cas. client. session. SingleSignOutHttpSessionListener
  
 
 
         
  
   
CAS Single Sign Out Filter
          
  
   
Org. jasig. cas. client. session. SingleSignOutFilter
  
 
         
  
   
CAS Single Sign Out Filter
          
  
   
/*
  
 
 
         
  
   
CASFilter
          
  
   
Org. jasig. cas. client. authentication. AuthenticationFilter
          
                  
   
    
CasServerLoginUrl
                   
   
    
Http: // 116.226.60.173: 8888/cas/login
                   
           
          
                  
   
    
ServerName
                   
   
    
Http: // 116.226.60.173: 8888
           
  
 
     
  
   
CASFilter
      
  
   
/Front/member /*
  
 
     
  
   
CASFilter
      
  
   
/MemberCenter /*
  
 
 
         
  
   
CAS Validation Filter
          
  
   
Org. jasig. cas. client. validation. cas20proxyconfiguringticketvalidationfilter
          
                  
   
    
CasServerUrlPrefix
                   
   
    
Http: // 116.226.60 .173: 8888/cas
           
          
                  
   
    
ServerName
                   
   
    
Http: // 116.226.60.173: 8888
           
  
   
     
  
   
CAS Validation Filter
      
  
   
/*
  
 
 
         
  
   
CAS HttpServletRequest Wrapper Filter
          
  
   
Org. jasig. cas. client. util. HttpServletRequestWrapperFilter
  
 
         
  
   
CAS HttpServletRequest Wrapper Filter
          
  
   
/*
  
 
         
  
   
CAS Assertion Thread Local Filter
          
  
   
Org. jasig. cas. client. util. AssertionThreadLocalFilter
  
 
         
  
   
CAS Assertion Thread Local Filter
          
  
   
/*
  
 
 

?

?

?

Php configuration

Require_once 'Cas. php '; define ('Cas _ SERVER_HOSTNAME', "192.168.18.8"); define ('Cas _ SERVER_PORT ', 8888); define ('Cas _ SERVER_APP_NAME', "CAS "); phpCAS: setDebug (); phpCAS: client (response, CAS_SERVER_HOSTNAME, CAS_SERVER_PORT, CAS_SERVER_APP_NAME); phpCAS: setNoCasServerValidation (); phpCAS: Response (); phpCAS :: forceAuthentication (); $ username = phpCAS: getUser (); // Get the cas server user name?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.