CAS implements single sign-on instance source code
1. Modify the server.xml file as follows:
Note: the https authentication method is used here. You need to release this configuration and make the following modifications:
Port= "8443" protocol= "org.apache.coyote.http11.Http11NioProtocol"
MaxThreads= "150" SSLEnabled= "true" scheme= "https" secure= "true"
ClientAuth= "false" sslProtocol= "TLS"
KeystoreFile= "D:/sso-cas/caskey/keycard"
KeystorePass= "minglisoft"
/ >
Note: keystoreFile= "D:/sso-cas/caskey/keycard"-the path to the certificate
KeystorePass= "minglisoft"-Certificate password
two。 Test whether port 8443 of https is accessible: https://localhost:8443
There is no problem with the configuration
3. You can configure to access only through the domain name, or modify the server.xml file, and modify the configuration of localhost to jeesz.cn as follows:
UnpackWARs= "true" autoDeploy= "true" >
UnpackWARs= "true" autoDeploy= "true" >
Restart the tomcat container and visit as follows: http://jeesz.cn:8080
4. Copy the cas-server-webapp-4.2.7.war package into the tomcat container and name it cas.war as follows:
5. Restart and start the tomcat container, access cas and https://jeesz.cn:8443/cas
The default user name is: casuser
The default password is: Mellon
Here are all cas sso single sign-on deliverables and source code