keycloakify 10.0.0-rc.46 → 10.0.0-rc.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -184,6 +184,28 @@ try {
|
|
184
184
|
};
|
185
185
|
</#if>
|
186
186
|
|
187
|
+
attributes_to_attributesByName: {
|
188
|
+
|
189
|
+
if( !out["profile"] ){
|
190
|
+
break attributes_to_attributesByName;
|
191
|
+
}
|
192
|
+
|
193
|
+
if( !out["profile"]["attributes"] ){
|
194
|
+
break attributes_to_attributesByName;
|
195
|
+
}
|
196
|
+
|
197
|
+
var attributes = out["profile"]["attributes"];
|
198
|
+
|
199
|
+
delete out["profile"]["attributes"];
|
200
|
+
|
201
|
+
out["profile"]["attributesByName"] = {};
|
202
|
+
|
203
|
+
attributes.forEach(function(attribute){
|
204
|
+
out["profile"]["attributesByName"][attribute.name] = attribute;
|
205
|
+
});
|
206
|
+
|
207
|
+
}
|
208
|
+
|
187
209
|
return out;
|
188
210
|
|
189
211
|
function decodeHtmlEntities(htmlStr){
|
@@ -287,8 +309,8 @@ function decodeHtmlEntities(htmlStr){
|
|
287
309
|
key == "realmAttributes" &&
|
288
310
|
are_same_path(path, [])
|
289
311
|
) || (
|
290
|
-
<#-- attributesByName adds a lot of noise to the output and is not needed -->
|
291
|
-
key == "
|
312
|
+
<#-- attributesByName adds a lot of noise to the output and is not needed, we already have profile.attributes -->
|
313
|
+
key == "attributesByName" &&
|
292
314
|
are_same_path(path, ["profile"])
|
293
315
|
) || (
|
294
316
|
<#-- We already have the attributes in profile speedup the rendering by filtering it out from the register object -->
|