How can I get the Saml2SecurityToken.Assertion.Subject.NameId in the Subject form the testshib.org test server?

W O 39a0d912abc at gmail.com
Wed Oct 15 04:57:25 EDT 2014


Hi,



How can I get the Saml2SecurityToken.Assertion.Subject.NameId in the
Subject form the testshib.org test server? I get exceptions thrown if code
below is not uncommented.



What do I need to configure online or do I need to pass more information in
my metadata.xml file?



Help appreciated.



J.



            //if (saml2SecurityToken.Assertion.Subject.NameId == null)

            //{

            //    throw new InvalidDataException("The required NameID
Assertion is null");

            //}

            //identity.AddClaim(new Claim(Saml2ClaimTypes.NameId,
saml2SecurityToken.Assertion.Subject.NameId.Value));

            //if (saml2SecurityToken.Assertion.Subject.NameId.Format ==
null)

            //{

            //    throw new InvalidDataException("The required NameID
Assertion Format is null");

            //}

            //identity.AddClaim(new Claim(ClaimTypes.NameIdentifier,
saml2SecurityToken.Assertion.Subject.NameId.Value));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20141015/10d96a9d/attachment.html 


More information about the users mailing list