<div dir="ltr">Would &quot;nameid-format:emailAddress&quot; be significantly different from &quot;nameid-format:persistent&quot;?<div><br></div><div>This is the encoding I have for the specific attribute I&#39;m releasing:</div><div><br></div><div><div>&lt;resolver:AttributeDefinition id=&quot;cnIdentifiedName&quot; xsi:type=&quot;ad:PrincipalName&quot;&gt;</div><div>        &lt;resolver:Dependency ref=&quot;commonName&quot; /&gt;</div><div>        &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML1StringNameIdentifier&quot; nameFormat=&quot;urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress&quot; /&gt;</div><div>        &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML2StringNameID&quot; nameFormat=&quot;urn:oasis:names:tc:SAML:2.0:nameid-format:emailAddress&quot; /&gt;</div><div>    &lt;/resolver:AttributeDefinition&gt;</div></div><div><br></div><div><br></div><div>I thought that if I released the nameid in the form of an email address that I wouldn&#39;t need to release any other attributes.</div><div><br></div><div>Thanks, Kevin.</div><div><br></div><div>Mike</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 9, 2014 at 11:33 AM, Kevin Foote <span dir="ltr">&lt;<a href="mailto:kpfoote@uoregon.edu" target="_blank">kpfoote@uoregon.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Oct 9, 2014, at 8:18 AM, Michael Dahlberg &lt;<a href="mailto:olgamirth@gmail.com">olgamirth@gmail.com</a>&gt; wrote:<br>
<br>
&gt; I&#39;m trying to configure our IdP for an external SP (<a href="http://widencollective.com" target="_blank">widencollective.com</a>).  Authentication is successful (for the user &quot;testuser&quot;) but immediately after that, I get an error page from the SP that states that &quot;the access request was malformed&quot;.  My logs show the following:<br>
&gt;<br>
&gt; 10:59:41.442 - WARN [edu.internet2.middleware.shibboleth.idp.profile.AbstractSAMLProfileHandler:491] - No attribute of principal &#39;testuser&#39; can be encoded in to a NameIdentifier of required format &#39;urn:oasis:names:tc:SAML:2.0:nameid-format:persistent&#39; for relying party &#39;<a href="https://bucknell.widencollective.com" target="_blank">https://bucknell.widencollective.com</a>&#39;<br>
&gt; 10:59:41.454 - INFO [Shibboleth-Audit:1028] - 20141009T145941Z|urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect|_4e53a5ba-696d-4e6e-995f-ef4bec816e1b|<a href="https://bucknell.widencollective.com" target="_blank">https://bucknell.widencollective.com</a>|urn:mace:shibboleth:2.0:profiles:saml2:sso|<a href="https://shib.bucknell.edu/idp/shibboleth|urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST|_15f35c49bb8308f399df9bf95795d0fd|testuser|urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport||||" target="_blank">https://shib.bucknell.edu/idp/shibboleth|urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST|_15f35c49bb8308f399df9bf95795d0fd|testuser|urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport||||</a><br>
&gt;<br>
&gt;<br>
&gt; In the attribute-filter.xml file, I deny the transientID and provide the attribute cnIdentifiedName, which is an SAML 2.0, persistent nameid attribute:<br>
<br>
</span>Your attribute may follow the spec of a persistent named attribute but, Is the attribute properly encoded for the nameID type specified?<br>
You have to encode this attribute in your attribute-resolver.xml to the the proper nameID format specified for that SP?  Something like the following needs to be added<br>
to your &lt;AttributeDefinition&gt;<br>
<br>
 &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML2StringNameID&quot; nameFormat=&quot;urn:oasis:names:tc:SAML:2.0:nameid-format:persistent&quot; /&gt;<br>
<br>
You then have to release the attribute like normal and deny release of others like you did with transientId…<br>
<br>
HTH<br>
<br>
--------<br>
thanks<br>
<span class="HOEnZb"><font color="#888888"> kevin.foote<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</font></span></blockquote></div><br></div>