How to use the Transformation Engine to zero pad numerical values in assertions

    Applies to:
  • Legacy SecureAuth IdP
Deployment model:
  • On Premises
  • SecureAuth IdP Version Affected: 8.2+


    The Transformation Engine can be used to pad numerical values with a prefix of zeroes so they are a consistent length.



    Some service providers may require that an attribute is a specific length and prefixed with zeros, e.g.:

    If the service provider requires a 9 digit value then numbers like 123 or 98765 should be sent as 000000123 and 000098765



    1. Open the Post Authentication tab of the respective realm and click on Transformation Engine

    2. In the Transformation engine configuration, tick the box to enable it and edit the section for the property that you are using like the following example for AuxID1:

    So that this line:
    <xsl:value-of select="user/AuxID1" />

    is replaced with this line:
    <xsl:value-of select="format-number(user/AuxID1, '000000000')" />

    3. Save the changes


    SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.

    Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products

    0 out of 0 found this helpful



    Please sign in to leave a comment.