Skip to content

Commit

Permalink
Fix custom attribute name issue in complex objects
Browse files Browse the repository at this point in the history
  • Loading branch information
PasinduYeshan committed Feb 3, 2025
1 parent c5da315 commit 2de6ecc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils;
Expand Down Expand Up @@ -689,7 +690,7 @@ public static void constructSCIMObjectFromAttributesOfLevelThree(UserManager use
String subAttributeURI = attributeEntry.getKey().replace("." + attributeNames[2], "");
AttributeSchema subAttributeSchema = getAttributeSchema(userManager, subAttributeURI, scimObjectType);

String parentAttributeURI = subAttributeURI.replace(":" + attributeNames[1], "");
String parentAttributeURI = removeAttributeNameFromURI(subAttributeURI, attributeNames[1]);
AttributeSchema attributeSchema = getAttributeSchema(userManager, parentAttributeURI, scimObjectType);

// Differentiate between sub attribute of Complex attribute and a Multivalued attribute with complex value.
Expand Down

0 comments on commit 2de6ecc

Please sign in to comment.