<div dir="ltr"><div>Hi,</div><div><br></div><div>Thank you for your answer. For rd.dev I get:</div><div> &lt;/ds:Signature&gt;<br>   &lt;saml2:Subject&gt;<br>      &lt;saml2:SubjectConfirmation Method=&quot;urn:oasis:names:tc:SAML:2.0:cm:bearer&quot;&gt;<br>         &lt;saml2:SubjectConfirmationData Address=&quot;46.243.26.58&quot; InResponseTo=&quot;_0b651836-f552-430c-90e4-e84e55d4eaa7&quot; NotOnOrAfter=&quot;2014-10-15T11:54:38.962Z&quot; Recipient=&quot;<a href="https://rp.dev/Auth/AssertionConsumerService">https://rp.dev/Auth/AssertionConsumerService</a>&quot;/&gt;<br>      &lt;/saml2:SubjectConfirmation&gt;<br>   &lt;/saml2:Subject&gt;</div><div><br></div><div>I expect:</div><div><br></div><div> &lt;saml:Subject&gt;<br><strong>      &lt;saml:NameID Format=&quot;urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified&quot;&gt;MyId&lt;/saml:NameID&gt;</strong><br>      &lt;saml:SubjectConfirmation Method=&quot;urn:oasis:names:tc:SAML:2.0:cm:bearer&quot;&gt;<br>        &lt;saml:SubjectConfirmationData Recipient=&quot;<a href="https://rp.dev/Auth/AssertionConsumerService">https://rp.dev/Auth/AssertionConsumerService</a>&quot; NotOnOrAfter=&quot;2014-10-15T09:59:04.791Z&quot; InResponseTo=&quot;_fd7d6fef-06a9-48d0-bce1-edd76657a328&quot; /&gt;<br>      &lt;/saml:SubjectConfirmation&gt;<br>    &lt;/saml:Subject&gt;</div><div><br></div><div>Maybe my metadata is not correct to instruct the Testshib IDP.</div><div><br></div><div>In .NET is a class named <font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">public</font></font></font><font face="Consolas"><font face="Consolas"> </font></font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">class</font></font></font><font face="Consolas"><font face="Consolas"> </font></font><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas">Saml2SecurityToken</font></font></font><font face="Consolas"><font face="Consolas"> : </font></font><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas"><font color="#2b91af" face="Consolas">SecurityToken <font color="#222222" face="Arial">that does all the &#39;work&#39;. So if the right information is input, the output will also be given. However, the input is missing het NameId.</font></font></font></font></div><div><br></div><div>You help is appreciated.</div><div> <br></div><div>J.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-15 11:19 GMT+02:00 Peter Schober <span dir="ltr">&lt;<a href="mailto:peter.schober@univie.ac.at" target="_blank">peter.schober@univie.ac.at</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* W O &lt;<a href="mailto:39a0d912abc@gmail.com">39a0d912abc@gmail.com</a>&gt; [2014-10-15 10:57]:<br>
<span>&gt; How can I get the Saml2SecurityToken.Assertion.Subject.NameId in the<br>
&gt; Subject form the <a href="http://testshib.org" target="_blank">testshib.org</a> test server? I get exceptions thrown if code<br>
&gt; below is not uncommented.<br>
<br>
</span>Logging into the Testshib SP from the Testshib IDP (using the<br>
credentials provided on its login page) and checking the IDP and SP<br>
logs, I just verified that the Testshib IDP does send a transient<br>
NameID in the assertion&#39;s Subject.<br>
(It also sends a persistent NameID wrapped in a SAML attribute as part<br>
of the AttributeStatement.)<br>
Feel free to check the Testhib IDP&#39; logs yourself, that&#39;s why they&#39;re<br>
being made easily available via the web.<br>
<br>
How you access a NameID in custom .NET code (I&#39;m guessing) is not an<br>
issue for the Shibboleth list or project.<br>
<span class="HOEnZb"><font color="#888888">-peter<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>