api-manager icon indicating copy to clipboard operation
api-manager copied to clipboard

[APIM 4.4.0] JIT Provisioning Fails Due to Improper Formatting of AllowAssociatingToExistingUser in identity.xml.j2

Open SameeraSI opened this issue 11 months ago • 0 comments

Description

HiTeam,

According to the identity.xml.j2 template, the AllowAssociatingToExistingUser value is set to true by default. However, the way it is defined in the template includes two newline characters (\n) before and after the value:

<AllowAssociatingToExistingUser>
            {{authentication.jit_provisioning.associating_to_existing_user | default(true)}}
</AllowAssociatingToExistingUser>

As a result, the generated identity.xml looks like this:

<AllowAssociatingToExistingUser>
            true
</AllowAssociatingToExistingUser>

Due to the presence of the newline characters, the code fails to interpret this value as a valid boolean true.

Thanks, Sameera

Version

wso2am-4.4.0

SameeraSI avatar Apr 10 '25 07:04 SameeraSI