<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">Hi ,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Below two forms of attributes were not able to be decoded by single decoder<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">1. StringAttributeDecoder decodes the below attribute, but NameIDAttributeDecoder fails to decode the attribute as there is no NameID in the attribute value<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"></saml2:Attribute><saml2:Attr<o:p></o:p></p>
<p class="MsoPlainText">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<o:p></o:p></p>
<p class="MsoPlainText">name-format:uri"><saml2:AttributeValue xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:type="xs:string">831527828712cd9<o:p></o:p></p>
<p class="MsoPlainText">1as782609</saml2:AttributeValue></saml2:Attribute><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">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 )<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"></saml2:Attribute FriendlyName="eduPersonTargetedID" Name="urn:oid:<o:p></o:p></p>
<p class="MsoPlainText">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="<a href="https://sdauth.sciencedirect.com/">https://sdauth.sciencedirect.com/</a>">jhahRERgsfjijksajhTghsajaahsstU/dXU
=</saml2:NameID></saml2:AttributeValue></saml2:Attribute><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">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 ?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Attribute-map.xml<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10 " id="eduPersonTargetedID"><o:p></o:p></p>
<p class="MsoPlainText"> <AttributeDecoder xsi:type="StringAttributeDecoder" caseSensitive="false"/><o:p></o:p></p>
<p class="MsoPlainText"> </Attribute><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10 " id="eduPersonTargetedID"><o:p></o:p></p>
<p class="MsoPlainText"> <AttributeDecoder xsi:type="NameIDAttributeDecoder" formatter="!$Name" defaultQualifiers="false"/><o:p></o:p></p>
<p class="MsoPlainText"></Attribute> <o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Thanks,<o:p></o:p></p>
<p class="MsoPlainText">Dinesh. <o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>