Joke Collection Website - Public benefit messages - Analysis of CAS single sign-on principle
Analysis of CAS single sign-on principle
CAS is an open source single sign-on project initiated by Yale University and is also the most widely used open source project. It has a very good reference value for learning SSO
Single Sign On (Single Sign On), referred to as SSO. It is mostly used in multi-system storage environments. After users log in in one place, they do not need to log in in other systems. The simplest single sign-in implementation can be completely based on cookies, by writing a token with login information to the browser. To achieve the purpose of multi-point login, those who are interested can implement one by themselves
First steal a picture:
From a structural point of view, it is divided into three parts: CAS Client, CAS Server , browser
CAS Client is deployed together with the protected client application, protects the protected resources of the Web application in Filter mode, and filters every Web request from the client
Below I will divide it into two parts (user first login verification and subsequent login verification) to analyze the login principle in detail
The above is the basic process for the first verification
Cross The key to the domain lies in the browser-side Cookie: TGC. Because this cookie is set on the SSO Server side, it ensures that the unified ticket has nothing to do with the Client-side domain name.
The core of cas single sign-on is a single cookie, N sessions
In this protocol, all interactions with the CAS Server use the SSL protocol to ensure the security of ST and TGC .
- Previous article:How to send a message to a mobile phone with imessage?
- Next article:A little routine of flirting with your boyfriend
- Related articles
- 96268 sent a text message saying that it would be transferred out.
- How does Apple change the custom ringtone? Ask for recommendation.
- What's the telephone number of the rural credit cooperative? The customer service telephone numbers of rural credit cooperatives in all provinces are here!
- Tomorrow is the New Year holiday in China. My boss hasn't paid me when I get home, and I can't buy things for my family. How to gently urge the boss to send him a text message?
- Acquisition SMS
- Summary of school summer work
- The specific location of social security in Jiangxi Province
- Xiaomi's mobile phone has had enough cards. How to recover?
- Can I send text messages to others with my watch? How to operate?
- Yixing Health Cloud Authorization did not respond.