Common Technical Scenarios

Common Technical Scenarios

1. How to achieve single sign-on

1.1 Overview

The English name of single sign-on is: Single Sign On ( SSO for short ), you only need to log in once, you can access all trusted application systems

In the past , we generally had a single system , and all functions were on the same system.

image-20230521113500488

Session sharing of single system

  • Login : save user information in the Session object

    • If it can be found in the Session object, it means you have logged in
    • If it cannot be found in the Session object, it means that you are not logged in (or have logged out)
  • Logout (Logout) : Delete the user's information from the Session

Later, in order to make reasonable use of resources and reduce coupling , we split the single system into multiple subsystems.

image-20230521113544219

There may be multiple Tomcats in multiple systems, and the Session depends on the To of the current system.

Guess you like

Origin blog.csdn.net/m0_65030141/article/details/131253761