<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Hi!</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
I’m trying to release an attribute as a SAML2NameID to an SP but what the SP sees is generally a string like the following:&nbsp;<span style="color: rgb(58, 69, 81); font-family: 'Lucida Grande', Arial; font-size: 12px; background-color: rgb(249, 249, 249);">org.opensaml.saml2.core.impl.NameIDImpl@6b13c116</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<span style="color: rgb(58, 69, 81); font-family: 'Lucida Grande', Arial; font-size: 12px; background-color: rgb(249, 249, 249);"><br>
</span></div>
<div>I understand I should be generating a persistent nameID &nbsp;via a StoredID but for test purposes I just want to release a non-obfuscated attribute to the SP as the persistent nameID.&nbsp;</div>
<div><br>
</div>
<ol>
<li>Is this even possible?</li><li>If so, what am I doing wrong?</li></ol>
<div><br>
</div>
<div>Here’s the appropriate portions of attribute-resolver.xml:</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &lt;resolver:AttributeDefinition xsi:type=&quot;ad:SAML2NameID&quot; id=&quot;eduPersonTargetedID&quot; sourceAttributeID=&quot;uid&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;resolver:Dependency ref=&quot;byuDataSource&quot; /&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML2StringNameID&quot; nameFormat=&quot;urn:oasis:names:tc:SAML:2.0:nameid-format:persistent&quot; /&gt;</div>
<div>&nbsp; &nbsp; &lt;/resolver:AttributeDefinition&gt;&nbsp;</div>
<div><br>
</div>
<div>byuDataSource is a valid and working data connector and “uid” contains a string.</div>
<div><br>
</div>
<div>Here’s the appropriate portion of our AttributeFilterPolicy in attribute-filter.xml where we’re releasing this attribute:</div>
<div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;afp:AttributeRule attributeID=&quot;eduPersonTargetedID&quot;&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;afp:PermitValueRule xsi:type=&quot;basic:ANY&quot; /&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/afp:AttributeRule&gt;</div>
</div>
<div><br>
</div>
<div>Thanks!</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div id="">
<div>
<div>Alex K. Olson</div>
</div>
</div>
</div>
</body>
</html>