Remove profile.attributesByName from the kcContext

This commit is contained in:
Joseph Garrone
2024-05-28 01:05:35 +02:00
parent fdfcd78f02
commit a217f617d8
4 changed files with 9 additions and 26 deletions

View File

@ -286,6 +286,9 @@ function decodeHtmlEntities(htmlStr){
<#-- Remove realmAttributes added by https://github.com/jcputney/keycloak-theme-additional-info-extension for peace of mind. -->
are_same_path(path, []) &&
key == "realmAttributes"
) || (
<#-- attributesByName adds a lot of noise to the output and is not needed -->
are_same_path(path, ["profile"]) && key == "attributesByName"
)
>
<#local out_seq += ["/*" + path?join(".") + "." + key + " excluded*/"]>