define

SSO: Single Sign On

The overall login process is as follows

Apply 1-a user operations

1. Application 1 Accesses the server from the client. 2. The client submits user A - Login page information 4. The service verifies the login information and returns the client with user A's token 5. The client saves user A's token to the cookiesCopy the code

Apply 2-a user operations

1. Application 2- Use the client to access the server, with the token 2 of user A saved last time. The server compares the token and session information. 3. If the match is consistent, the session user information is returnedCopy the code

Notice That cookies on different ports are shared in the same sourceCopy the code