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

How to configure CAS

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly explains "how to configure CAS". Friends who are interested might as well take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to configure CAS.

Specific content

If you want to achieve single sign-on does not actually need users to complete, single sign-on is just a design idea, and many developers in the actual development process, will specifically configure a CAS authentication server to achieve single sign-on.

Once you use CAS in your project, CAS will act as the server side and the WEB container (Tomcat) will appear as the client side.

1. Ordinary users access WEB through CAS client (Tomcat)

2. Then the WEB side will forward the user's request to the CAS server.

3. After jumping to the CAS server, the user can enter the user name and password to log in to the system.

4. If the authentication is passed, the request will be returned to the WEB side, and then the WEB side will receive a ticket stub data generated by the CAS side, and use this data for CAS authentication detection.

5. After the ticket stub test is passed, the user name of the CAS server will be sent back to the Web side.

Now that you have a clear understanding of the CAS process, let's configure the CAS server. The version of CAS used this time is "cas-server-webapp-4.1.7.war". It is recommended to rename this file to cas.war for convenience. The war file can be uploaded directly to Tomcat.

1. It is strongly recommended that you shut down your native Tomcat:/usr/local/tomcat/bin/catalina.shstop before cas deployment

2. Copy the cas.war file to the "/ usr/local/tomcat/webapps" directory: mv/srv/ftp/cas.war/usr/local/tomcat/webapps/

3. Restart Tomcat:/usr/local/tomcat/bin/catalina.shstart

At this point, the cas.war file is automatically unzipped to a cas directory after Tomcat starts.

4. Shut down the Tomcat service: / usr/local/tomcat/bin/catalina.shstop

5. Delete cas.war file: rm/usr/local/tomcat/webapps/cas.war

6. Modify server.xml configuration file: vim/usr/local/tomcat/conf/server.xml

7. Restart Tomcat:/usr/local/tomcat/bin/catalina.shstart

8. Open a browser to access: https://cas.com/

Cas defaults to a user name: casuser/Mellon

At this point, I believe you have a deeper understanding of "how to configure CAS", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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: 267

*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