Single sign-cas

What is single sign-on

Single sign-on (Single Sign On), referred to as SSO, is one of the more popular enterprise business integration solutions. SSO is defined in multiple applications, users need only log in once to access all applications of mutual trust.

There are many subsystems our current system, and these subsystems are deployed in different servers, use the traditional way of session can not be solved, we need to use single sign-related technology to solve.

What is the cas

CAS is an open source project initiated by Yale University, aims to provide a reliable method of single sign-on for Web applications, CAS officially became a project JA-SIG in December 2004. CAS has the following characteristics:
[1] open source enterprise single sign-on solution.
[2] CAS Server to require a separate deployment of Web applications.
[3] CAS Client support very large number of clients (in this case each Web application single sign-on system), including Java, .Net, PHP, Perl, Apache, uPortal, Ruby and so on.
From a structural point of view, CAS consists of two parts: CAS Server and CAS Client. CAS Server requires a separate deployment, mainly responsible for the certification of the user; CAS Client is responsible for handling client requests for access to protected resources, if necessary logged redirected to the CAS Server. The figure is the most basic protocol CAS process:

SSO single sign-on access to the process are the following steps:

1. Access Services: SSO client sends a request to access the resource service application provided by the system.

2. Directional Certification: SSO client will redirect user requests to the SSO server.

3. User Authentication: User authentication.

4. Granting Ticket: SSO server generates a random Service Ticket.

5. Verify bill: SSO server to verify the legitimacy of bills Service Ticket After authentication, allowing the client to access the service.

6. The transfer of user information: ticket verified by the SSO server, user authentication result information transmitted to the client.

CAS服务端部署

Cas服务端其实就是一个war包。
在资源\cas\source\cas-server-4.0.0-release\cas-server-4.0.0\modules目录下
cas-server-webapp-4.0.0.war 将其改名为cas.war放入tomcat目录下的webapps下。启动tomcat自动解压war包。浏览器输入http://localhost:8080/cas/login ,可看到登录页面

 

cas下载链接:https://pan.baidu.com/s/1Domy7fuej2OnAbkcM-RMHQ 密码:70n5

不要嫌弃这个页面丑,我们后期可以再提升它的颜值。暂时把注意力放在功能实现上。 这里有个固定的用户名和密码 casuser /Mellon 登录成功后会跳到登录成功的提示页面

 

cas启动完毕!!!

Guess you like

Origin www.cnblogs.com/hejj-bk/p/11308651.html