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?