<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>&nbsp;</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>&nbsp;</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>&nbsp;</o:p></p>
<p class="MsoPlainText">&lt;/saml2:Attribute&gt;&lt;saml2:Attr<o:p></o:p></p>
<p class="MsoPlainText">ibute FriendlyName=&quot;eduPersonTargetedID&quot; Name=&quot;urn:oid:1.3.6.1.4.1.5923.1.1.1.10&quot; NameFormat=&quot;urn:oasis:names:tc:SAML:2.0:attr<o:p></o:p></p>
<p class="MsoPlainText">name-format:uri&quot;&gt;&lt;saml2:AttributeValue xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot; xsi:type=&quot;xs:string&quot;&gt;831527828712cd9<o:p></o:p></p>
<p class="MsoPlainText">1as782609&lt;/saml2:AttributeValue&gt;&lt;/saml2:Attribute&gt;<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</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>&nbsp;</o:p></p>
<p class="MsoPlainText">&lt;/saml2:Attribute FriendlyName=&quot;eduPersonTargetedID&quot; Name=&quot;urn:oid:<o:p></o:p></p>
<p class="MsoPlainText">1.3.6.1.4.1.5923.1.1.1.10&quot; NameFormat=&quot;urn:oasis:names:tc:SAML:2.0:attrname-format:uri&quot;&gt;&lt;saml2:AttributeValue&gt;&lt;saml2:NameID Format=&quot;urn:oasis:names:tc:SAML:2 .0:nameid-format:persistent&quot; NameQualifier=&quot;testfed/shibboleth&quot; SPNameQualifier=&quot;<a href="https://sdauth.sciencedirect.com/">https://sdauth.sciencedirect.com/</a>&quot;&gt;jhahRERgsfjijksajhTghsajaahsstU/dXU
 =&lt;/saml2:NameID&gt;&lt;/saml2:AttributeValue&gt;&lt;/saml2:Attribute&gt;<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</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>&nbsp;</o:p></p>
<p class="MsoPlainText">Attribute-map.xml<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&lt;Attribute name=&quot;urn:oid:1.3.6.1.4.1.5923.1.1.1.10 &quot; id=&quot;eduPersonTargetedID&quot;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;AttributeDecoder xsi:type=&quot;StringAttributeDecoder&quot; caseSensitive=&quot;false&quot;/&gt;<o:p></o:p></p>
<p class="MsoPlainText">&nbsp; &lt;/Attribute&gt;<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&lt;Attribute name=&quot;urn:oid:1.3.6.1.4.1.5923.1.1.1.10 &quot; id=&quot;eduPersonTargetedID&quot;&gt;<o:p></o:p></p>
<p class="MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;AttributeDecoder xsi:type=&quot;NameIDAttributeDecoder&quot; formatter=&quot;!$Name&quot; defaultQualifiers=&quot;false&quot;/&gt;<o:p></o:p></p>
<p class="MsoPlainText">&lt;/Attribute&gt; <o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">Thanks,<o:p></o:p></p>
<p class="MsoPlainText">Dinesh.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>