<div dir="ltr"><div>I've been reading up on the different reasons why this occurs, and I appear to be following all the appropriate naming conventions. This is a custom attribute name and it uses the urn:oasis:names:tc:SAML:2.0:attrname-format:uri nameFormat.</div>
<div><br></div><div>attribute-resolver.xml:</div><div><br></div><div><resolver:AttributeDefinition xsi:type="PrincipalName" xmlns="urn:mace:shibboleth:2.0:resolver:ad" id="userPrincipalUsername"></div>
<div> <resolver:AttributeEncoder xsi:type="SAML2String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder" nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" name="<a href="https://www.example.org/attributes/username">https://www.example.org/attributes/username</a>" /></div>
<div></resolver:AttributeDefinition></div><div><br></div><div>Assertion:</div><div><br></div><div>...</div><div><saml2:AttributeStatement></div><div> <saml2:Attribute</div><div> Name="<a href="https://www.example.org/attributes/username">https://www.example.org/attributes/username</a>" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"></div>
<div> <saml2:AttributeValue</div><div> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:type="xs:string">(my value is printed here)</saml2:AttributeValue></div>
<div> </saml2:Attribute></div><div></saml2:AttributeStatement></div><div>...</div><div><br></div><div>attribute-map.xml</div><div><br></div><div><Attribute name="<a href="https://www.example.org/attributes/username">https://www.example.org/attributes/username</a>" id="username" /></div>
<div><br></div><div>I have also tried the following two formats, and neither work:</div><div><br></div><div><Attribute name="urn:oasis:names:tc:SAML:2.0:attrname-format:uri:<a href="https://www.example.org/attributes/username">https://www.example.org/attributes/username</a>" id="username" /></div>
<div><Attribute nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" name="<a href="https://www.example.org/attributes/username">https://www.example.org/attributes/username</a>" id="username" /></div>
<div><br></div><div>I always end up with the following INFO message and nothing in the request for the service provider:</div><div><br></div><div>2013-07-19 16:58:53 INFO Shibboleth.AttributeExtractor.XML [5]: skipping unmapped SAML 2.0 Attribute with Name: <a href="https://www.example.org/attributes/username">https://www.example.org/attributes/username</a></div>
</div>