When a user's password is reset or a user is deleted, all the existing active sessions associated with the user must be invalidated or terminated in order to ensure the safety of the application. This topic guides you through enabling session termination. When it is enabled, user sessions are terminated when the following events occur:
- Update user credentials
- Delete user
- Lock user account
- Disable user account
To use this feature, apply the 3381 WUM update for WSO2 IS 5.7.0 using the WSO2 Update Manager (WUM).
To deploy a WUM update into production, you need to have a paid subscription. If you do not have a paid subscription, you can use this feature with the next version of WSO2 Identity Server when it is released. For more information on updating WSO2 Identity Server using WUM, see Getting Started with WUM in the WSO2 Administration Guide.
Follow the steps given below to enable this functionality.
Add the following configuration to the
identity.xml
file located in the<IS_HOME>/repository/conf/
folder within the<SessionDataPersist>
tag.<JDBCPersistenceManager> ..... <SessionDataPersist> ..... <UserSessionMapping> <Enable>true</Enable> </UserSessionMapping> </SessionDataPersist> </JDBCPersistenceManager>
Create the following new tables in the database using the appropriate query.