Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-1498

Allow for Velocity Engine configuration customization

    XMLWordPrintable

    Details

      Description

      As wrote in IDP-1497, non-existent or empty attribute values leave the placeholder in the template. That is, the example below produces "${mail2}" literally.

      It seems more intuitive that the placeholder is replaced by the empty string.

          <DataConnector id="staticAttributes" xsi:type="Static">
              <Attribute id="uid">
                  <Value>test001</Value>
              </Attribute>
              <Attribute id="mail">
                  <Value> </Value>
              </Attribute>
          </DataConnector>
           <AttributeDefinition xsi:type="Template" id="mail">
              <Dependency ref="staticAttributes"/>
              <AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:mail" encodeType="false" />
              <AttributeEncoder xsi:type="SAML2String" name="urn:oid:0.9.2342.19200300.100.1.3" friendlyName="mail" encodeType="false" />
              <Template>
                  <![CDATA[
      ${mail2}
                  ]]>
              </Template>
              <SourceAttribute>uid</SourceAttribute>
              <SourceAttribute>mail2</SourceAttribute>
          </AttributeDefinition>
      

        Attachments

        1. staticAttributesSpring.xml
          2 kB
          Takeshi Nishimura

          Activity

            People

            Assignee:
            cantor.2@osu.edu Scott Cantor
            Reporter:
            takeshi@gakunin.nii.ac.jp Takeshi Nishimura
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: