Skip to content

Commit

Permalink
#1284 Fixed duplicate key error for currentUser endpoint when logging…
Browse files Browse the repository at this point in the history
… to duplicate keycloak
  • Loading branch information
dragonpoo authored and ludomikula committed Nov 22, 2024
1 parent 311bae7 commit 570e35c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ protected Map<String, Object> convertConnections(Set<Connection> connections) {
return connections.stream()
.filter(connection -> !AuthSourceConstants.EMAIL.equals(connection.getSource()) &&
!AuthSourceConstants.PHONE.equals(connection.getSource()))
.collect(Collectors.toMap(Connection::getSource, Connection::getRawUserInfo));
.collect(Collectors.toMap(Connection::getAuthId, Connection::getRawUserInfo));
}

protected String convertEmail(Set<Connection> connections) {
Expand Down

0 comments on commit 570e35c

Please sign in to comment.