Skip to content

Commit

Permalink
fix: update jansExtUid regardless of skipProfileUpdate value #9558
Browse files Browse the repository at this point in the history
Signed-off-by: jgomer2001 <[email protected]>
  • Loading branch information
jgomer2001 committed Sep 23, 2024
1 parent ed80ee6 commit 7dc0521
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ public String process(Map<String, List<Object>> profile) {
logger.info("Updating user {}", uid);
user.setCustomAttributes(attributesForUpdate(
user.getCustomAttributes(), profile2, provider.isCumulativeUpdate()));

//ugly hack
Optional.ofNullable(user.getAttributeValues("jansExtUid"))
.map(l -> l.toArray(new String[0])).ifPresent(user::setExternalUid);

userService.updateUser(user);
}

//ugly hack
Optional.ofNullable(user.getAttributeValues("jansExtUid"))
.map(l -> l.toArray(new String[0])).ifPresent(user::setExternalUid);

userService.updateUser(user);

} else {
logger.info("Adding user {}", uid);
Expand Down

0 comments on commit 7dc0521

Please sign in to comment.