...
The SAML 1 string attribute encoder creates SAML 1 <Attribute>
elements from resolved attributes with <AttributeValue>
elements for each value. The content of these <AttributeValue>
elements is a string created by invoking the resolve attribute values Object. toString() method. This encoder is only used for SAML 1 messages and will be ignored when the IdP is answering other protocol messages.
Note |
---|
This encoder will convert the values of the attribute it is attached into strings by means of the Object.toString() method. |
Define the Encoder
Attribute encoders are defined after any dependencies with an in a <resolver:AttributeDefinition>
after all <resolver:AttributeDefinition>Dependency>
.
To define a new SAML 1 string attribute encoder, create a <esolver<resolver:AttributeEncoder xsi:type="SAML1String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder">
with the following required attributes:
- name - this : This becomes the
AttributeName
attribute on the created SAML 1<Attribute>
element; this attribute is requirednamespace - this
and the following optional attributes:
- namespace: This becomes the
AttributeNamespace
attribute on the created SAML 1<Attribute>
element ; (defaults tourn:mace:shibboleth:1.0:attributeNamespace:uri
)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<resolver:AttributeDefinition id="UNIQUE_ID" xsi:type="ad:Simple"> <resolver:Dependency ref="DEFINITION_ID_1" /> <resolver:Dependency ref="DEFINITIONCONNECTOR_ID_21" /> <resolver:DependencyAttributeEncoder refxsi:type="CONNECTOR_ID_3" /> <resolver:Dependency ref="CONNECTOR_ID_4" /> <resolver:AttributeEncoder xsi:type="enc:SAML1StringSAML1String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder" name="ATTRIBUTE_NAME_1" /> <resolver:AttributeEncoder xsi:type="enc:SAML1StringSAML1String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder" name="ATTRIBUTE_NAME_2" namespace="ATTRIBUTE_NAMESPACE" /> </resolver:AttributeDefinition> |
...