Class MsAzurePatchComplexValueRebuilder
java.lang.Object
de.captaingoldfish.scim.sdk.server.patch.msazure.MsAzurePatchComplexValueRebuilder
This class handles one of the freestyle-SCIM-patch requests by MsAzure. A complex attribute that wants a
value to be set on a key with the name value looks as follows if it comes from MsAzure:
{
"Operations": [
{
"op": "Add",
"path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager",
"value": "271"
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
This is wrong of course because there is no direct path set to the managers subAttribute. MsAzure wants to
set this value to the "value"-attribute, so we need to fix this request to look like this:
{
"Operations": [
{
"op": "Add",
"path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager",
"value": {
"value": "271"
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
- Since:
- 31.10.2023
- Author:
- Pascal Knueppel
-
Constructor Summary
ConstructorsConstructorDescriptionMsAzurePatchComplexValueRebuilder(SchemaAttribute referencedAttribute, List<String> patchValues) -
Method Summary
-
Constructor Details
-
MsAzurePatchComplexValueRebuilder
public MsAzurePatchComplexValueRebuilder(SchemaAttribute referencedAttribute, List<String> patchValues)
-
-
Method Details
-
fixValues
-