[PR #8940/c814fd05 backport][stable-9] keycloak_userprofile: improve diff by deserializing fetched `kc.user.profile.config` and serializing it before sending #9002
Deserializing the string after fetching the userprofile component and serializing only when sending it back to the Keycloak API would allow a finer grained diff.
--- before
+++ after
@@ -49,7 +49,13 @@
}
}
],
- "groups": []
+ "groups": [
+ {
+ "displayDescription": "Attributes, which refer to user metadata",
+ "displayHeader": "User metadata",
+ "name": "user-metadata"
+ }
+ ]
}
]
},
changed: [kc1]
This is a backport of PR #8940 as merged into main (c814fd0530f00138f385ff25d18782729a7d5469).
SUMMARY
Keycloak returns a single JSON formatted string for the
kc.user.profile.config
which cant be diffed properly.Deserializing the string after fetching the userprofile component and serializing only when sending it back to the Keycloak API would allow a finer grained diff.
ISSUE TYPE
COMPONENT NAME
keycloak_userprofile