From 858f0d77c0111a6d4b16bd26f440a18d172fc470 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Thu, 11 Jul 2024 17:58:26 +0200 Subject: [PATCH] #585 --- .../generateFtl/kcContextDeclarationTemplate.ftl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bin/keycloakify/generateFtl/kcContextDeclarationTemplate.ftl b/src/bin/keycloakify/generateFtl/kcContextDeclarationTemplate.ftl index 07655403..b01ae08a 100644 --- a/src/bin/keycloakify/generateFtl/kcContextDeclarationTemplate.ftl +++ b/src/bin/keycloakify/generateFtl/kcContextDeclarationTemplate.ftl @@ -52,6 +52,14 @@ kcContext["x-keycloakify"] = { <#if attribute.displayName??> "${attribute.displayName}": decodeHtmlEntities("${advancedMsg(attribute.displayName)?js_string}"), + <#if attribute.group??> + <#if attribute.group.displayDescription??> + "${attribute.group.displayDescription}": decodeHtmlEntities("${advancedMsg(attribute.group.displayDescription)?js_string}"), + + <#if attribute.group.displayHeader??> + "${attribute.group.displayHeader}": decodeHtmlEntities("${advancedMsg(attribute.group.displayHeader)?js_string}"), + + <#if attribute.annotations??> <#if attribute.annotations.inputHelperTextBefore??> "${attribute.annotations.inputHelperTextBefore}": decodeHtmlEntities("${advancedMsg(attribute.annotations.inputHelperTextBefore)?js_string}"), @@ -128,7 +136,7 @@ attributes_to_attributesByName: { if( !kcContext.profile.attributes ){ break attributes_to_attributesByName; } - var attributes = kcContext.profile.attributes; + var attributes = kcContext.profile.attributes; delete kcContext.profile.attributes; kcContext.profile.attributesByName = {}; attributes.forEach(function(attribute){