Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CAS implements single sign-on instance source code

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report