CAS SSO transformation steps (1)

According to the company's business needs, a single sign-on server needs to be configured to provide a unified authentication center for subsequent application launches.

The required services are as follows:

  1. sign in
  2. Only one place to log in at a time
  3. Each user can only access authorized applications
  4. Login log

The simplified versions of several main database tables are recorded as follows.

USERS
ID WHERE
EMAIL WHERE
PASSWORD WHERE
TOKEN WHERE
The token here is mainly used as a token that can only be logged in one place at a time. This token sets the login status to "1" when logging in, and will change the login status to "0" when logging out or closing the browser or when the TGC ticket becomes invalid.

USER_LOGGED_LOG
ID WHERE
USER_ID WHERE
IP WHERE
LOGGED_TIME TIME
This table mainly records user login logs.

APPLICATIONS
ID WHERE
URL WHERE
APP_NAME WHERE
Mainly record the link and name of each application.

USER_APPS
ID WHERE
USER_ID WHERE
APP_ID WHERE
Authorized application corresponding to each user.

The above is the database table designed to realize the main functions. The transformation of the cas part continues below.

Guess you like

Origin blog.csdn.net/superiorpengFight/article/details/53536638
sso