api-manager
api-manager copied to clipboard
[APIM 4.4.0] JIT Provisioning Fails Due to Improper Formatting of AllowAssociatingToExistingUser in identity.xml.j2
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