Updated on 2024-11-29 GMT+08:00

Resetting Sessions During Secondary Authentication Configuration

Scenario

Before performing important operations, you need to perform secondary authentication on users. You can enable the function of resetting sessions during secondary authentication to invalidate the original sessions.

If session hijacking occurs before secondary authentication, resetting the session can terminate the session hijacking and reduce loss to users.

By default, resetting sessions during secondary authentication is disabled. You can enable the function by following the instructions provided in this section.

After secondary authentication is enabled and the session is reset, you will be switched to the login page after you enter the password for secondary authentication and confirm the password, because the heartbeat interface session is reset. In this case, log in again.

Procedure

  1. Log in to the active management node as user omm.
  2. Run the following command to modify the configuration:

    vi ${BIGDATA_HOME}/om-server/tomcat/webapps/web/WEB-INF/classes/config/web_security.properties

    Set second_auth_need_refresh_session to true.

  3. Run the following command to restart Tomcat:

    sh ${BIGDATA_HOME}/om-server/tomcat/bin/shutdown.sh;sh ${BIGDATA_HOME}/om-server/tomcat/bin/startup.sh

  4. Log in to the standby management node as user omm, and perform operations in 2.