Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Attribute encoders are defined after any dependencies with an <resolver:AttributeDefinition>. The

To define a new SAML 1 string attribute encoders starts with the same <resolver:AttributeEncoder> element as all other encoders and has a type of encoder, create a <esolver:AttributeEncoder xsi:type="SAML1String" xmlns=". The <resolver:AttributeEncoder> may also have the following the urn:mace:shibboleth:2.0:attribute:encoder"> with the following attributes:

  • name - this becomes the AttributeName attribute on the created SAML 1 <Attribute> element; this attribute is required
  • namespace - this becomes the AttributeNamespace attribute on the created SAML 1 <Attribute> element; defaults to urn:mace:shibboleth:1.0:attributeNamespace:uri
Code Block
xml
xml
titleSAML 1 String Attribute Encoder within a Simple Attribute Definition
<resolver:AttributeDefinition id="UNIQUE_ID" xsi:type="ad:Simple">

     <resolver:Dependency ref="DEFINITION_ID_1" />
     <resolver:Dependency ref="DEFINITION_ID_2" />
     <resolver:Dependency ref="CONNECTOR_ID_3" />
     <resolver:Dependency ref="CONNECTOR_ID_4" />

     <resolver:AttributeEncoder xsi:type="enc:SAML1String"
                                                      name="ATTRIBUTE_NAME_1" />

     <resolver:AttributeEncoder xsi:type="enc:SAML1String"
      
                                               name="ATTRIBUTE_NAME_2"
                     
                                namespace="ATTRIBUTE_NAMESPACE" />

</resolver:AttributeDefinition>

...