decoders for eduPersonTargetedID

Selvaraj, Dineshkumar (ELS-DAY) dineshkumar.selvaraj at lexisnexis.com
Thu Oct 25 19:32:23 EDT 2012


Hi ,



Below two forms of attributes were not able to be decoded by single decoder



1. StringAttributeDecoder decodes the below attribute, but NameIDAttributeDecoder fails to decode the attribute as there is no NameID in the attribute value



</saml2:Attribute><saml2:Attr

ibute FriendlyName="eduPersonTargetedID" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" NameFormat="urn:oasis:names:tc:SAML:2.0:attr

name-format:uri"><saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">831527828712cd9

1as782609</saml2:AttributeValue></saml2:Attribute>



2. NameIDAttributeDecoder decodes the below attribute, but StringAttributeDecoder fails to decode the attribute as the attribute value is not in string format (having child element saml2:NameID )



</saml2:Attribute FriendlyName="eduPersonTargetedID" Name="urn:oid:

1.3.6.1.4.1.5923.1.1.1.10" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue><saml2:NameID Format="urn:oasis:names:tc:SAML:2 .0:nameid-format:persistent" NameQualifier="testfed/shibboleth" SPNameQualifier="https://sdauth.sciencedirect.com/">jhahRERgsfjijksajhTghsajaahsstU/dXU =</saml2:NameID></saml2:AttributeValue></saml2:Attribute>



I tried using both the decoders in attribute-map.xml, but the decoder associate with first occurrence of matching name(urn:oid:1.3.6.1.4.1.5923.1.1.1.10) and id(eduPersonTargetedID ) was taken for decoding. Is there a decoder which can parse above 2 types of attributes, irrespective of the attribute value is string or NameID ?



Attribute-map.xml



<Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10 " id="eduPersonTargetedID">

          <AttributeDecoder xsi:type="StringAttributeDecoder" caseSensitive="false"/>

  </Attribute>



<Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10 " id="eduPersonTargetedID">

       <AttributeDecoder xsi:type="NameIDAttributeDecoder" formatter="!$Name" defaultQualifiers="false"/>

</Attribute>



Thanks,

Dinesh.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20121025/3bfc45af/attachment-0001.html 


More information about the users mailing list