To protect the user's account security, SuperMap iPortal provides the function of remote login detection. After enabling the remote detection setting, if an account is logged into iPortal in different places at the same time, it will be judged as a remote login. And the result will be displayed in the response body ( "anotherPlaceLogin" field) after the login resource executes the POST request. The following will introduce in detail how to set the remote login detection in iPortal:
The iPortal administrator can add the relevant configuration iPortal (bold part) of remote login detection under the <properties> node in the iserver-system.xml file in the %SuperMap iPortal_HOME%/webapps/iportal/WEB-INF directory. For details, see the iServer configuration file description.
Example:
...
<properties>
<realspaceSecurityEnabled>true</realspaceSecurityEnabled>
<deniedFiles/>
<outputPath>./output</outputPath>
<envCheckEnabled>true</envCheckEnabled>
<checkDatasourceConnectionInterval>30</checkDatasourceConnectionInterval>
<outputSite>http://{ip}:{port}/{contextPath}/output/</outputSite>
<restartWhenCrash>true</restartWhenCrash>
<realspaceCacheAccessKey>-37 80 99 -61 -77 8 50 44 -71 90 -24 -17 -115 80 -56 -17</realspaceCacheAccessKey>
<checkLoggedInAnotherPlace>true</checkLoggedInAnotherPlace>
<loggedInAnotherPlaceProcessingStrategy>Notifying</loggedInAnotherPlaceProcessingStrategy>
</properties>
...
- <checkLoggedInAnotherPlace>: Whether to enable remote login, true means enable remote login.
- <loggedInAnotherPlaceProcessingStrategy>: Remote login processing strategy, this configuration takes effect only when checkLoggedInAnotherPlace is true. Optional values include: Notifying, LatestLoggedInFirst. Notifying, the notification mode, which means that the same account can log in to multiple hosts at the same time, and it will notify the currently detected remote login status of the account when logging in. LatestLoggedInFirst, the latest login takes precedence, which means that the same account can only log in to one at the same time. And the currently detected remote login is also notified when logging in. The difference from notification mode is that the last login account on another host will be automatically logged out. If remote login is enabled( checkLoggedInAnotherPlace is true), but the remote login processing policy is empty, the Notifying mode will be used by default.