Skip to content

Commit

Permalink
Avoid session termination by userId
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiyamSanthosh committed Jan 18, 2024
1 parent 7996f5a commit 5de65ea
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,16 +336,10 @@ private void terminateSession(List<String> userIDList, String roleId, String ten
.getRevocationProcessor()
.revokeTokens(userName, userStoreManager, roleId);
OAuthUtil.removeUserClaimsFromCache(userName, userStoreManager);
OAuth2ServiceComponentHolder.getUserSessionManagementService()
.terminateSessionsByUserId(userId);
} catch (UserSessionException e) {
String errorMsg = "Error occurred while revoking access token for user Id: " + userId;
log.error(errorMsg, e);
throw new IdentityEventException(errorMsg, e);
} catch (SessionManagementException e) {
String errorMsg = "Failed to terminate active sessions of user Id: " + userId;
log.error(errorMsg, e);
throw new IdentityEventException(errorMsg, e);
}
}
}
Expand Down

0 comments on commit 5de65ea

Please sign in to comment.