Core login logic:
Upon user login, the system first checks whether the cookie contains a TGT. If the TGT exists, an ST is generated using the TGT. The ST is then used to retrieve user information and call the login API to log in to the console directly.
If the cookie does not contain a TGT, the user is redirected to the login page and follows the standard cloud platform login process.
During the cloud platform login process, the system checks whether the account is locked, whether the username and password are correct, whether the password has expired, and whether login protection is enabled.
The login flow also involves calling TDSQL, writing the skey to RedisĀ® after login, and reporting login information to Kafka.