ilgrosso commented on code in PR #581:
URL: https://github.com/apache/syncope/pull/581#discussion_r1431633950


##########
ext/scimv2/logic/src/main/java/org/apache/syncope/core/logic/SCIMDataBinder.java:
##########
@@ -815,6 +815,17 @@ public Pair<UserUR, StatusR> toUserUpdate(final UserTO 
before, final SCIMPatchOp
 
             case "active":
                 if (!CollectionUtils.isEmpty(op.getValue())) {
+
+                    // Workaround for Microsoft Entra being not SCIM compliant 
on PATCH requests
+                    if (op.getValue().get(0) instanceof String) {
+                        String a = (String) op.getValue().get(0);
+                        if (a.equalsIgnoreCase("true")) {

Review Comment:
   Can you change this whole block by 
   
   ```java
   op.setValue(List.of(BooleanUtils.toBoolean(a)));
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@syncope.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to