Skip to content

Commit

Permalink
fix: update jansExtUid regardless of skipProfileUpdate value (#9566)
Browse files Browse the repository at this point in the history
fix: update jansExtUid regardless of skipProfileUpdate value #9558

Signed-off-by: jgomer2001 <[email protected]>
  • Loading branch information
jgomer2001 authored and imShakil committed Oct 3, 2024
1 parent c57f022 commit 9519dd2
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 9519dd2

Please sign in to comment.