1. Modify the portal-server.war/WEB-INF/context. XML inCode, As follows:
1 < Valve Classname = "Org. JBoss. Portal. Identity. SSO. Cas. casauthenticationvalve"
2 Caslogin = "Https: // localhost: 8443/CAS/login"
3 Caslogout = "Https: // localhost: 8443/CAS/logout"
4 Casvalidate = "Https: // localhost: 8443/CAS/servicevalidate"
5 Casservername = "Localhost: 8080"
6 Authtype = "Form"
7 />
1) caslogin: CAS server URL
2) casvalidate: CAS Server Authentication Service URL
3) casservername: (host name: Port)
2. Put CasClient. jar in the jboss-portal.sar/lib directory
3. Remove the comments of the following code in the jboss-portal.sar/META-INF/jboss-service.xml:
1 < Mbean
2 Code = "Org. JBoss. Portal. Identity. SSO. Cas. casauthenticationservice"
3 Name = "Portal: service = module, type = casauthenticationservice"
4 Xmbean-dd = ""
5 Xmbean-code = "Org. JBoss. Portal. Jems. As. system. jbossservicemodelmbean" >
6 < Xmbean />
7 < Depends > Portal: service = module, type = identityservicecontroller </ Depends >
8 < Attribute Name = "Havingrole" > </ Attribute >
9 </ Mbean >
4. Modify the following code in jboss-web.deployer/server. xml:
1 < Connector Port = "8443" Protocol = "Https/1.1" Sslenabled = "True"
2 Maxthreads = "150" Scheme = "HTTPS" Secure = "True"
3 Clientauth = "False" Sslprotocol = "TLS"
4 Keystorepass = "Changeit"
5 Keystorefile = "$ {JBoss. server. Home. dir}/CONF/CAS"
6 />
CAS is the name of the key file
5. Remove the following code comments from the jboss-wer.deployer/server. xml:
1 < Valve Classname = "Org. Apache. Catalina. authenticator. singlesignon" />
6. 1)Portal-identity-lib.jarAndPortal-identity-sso-lib.jarPut it in CAS server/lib.
2) Modify WEB-INF/Deployerconfigcontext. xml configuration file,
<Bean class = "org. JBoss. Portal. Identity. SSO. Cas. casauthenticationhandler"/> replace
<Bean class = "org. JASIG. Cas. Authentication. handler. Support. simpletestusernamepasswordauthenticationhandler"/>
Cas-client-Java http://www.ja-sig.org/downloads/cas-clients/