W O
2014-10-15 08:57:25 UTC
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));
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));