Subject: SAML Attributes
Date: 2011-07-13 13:43:47
From: Josh Heitz
Source: saml-attributes
----------------------------------------------------------------------

I am running the code below to add attributes to my SSO assertion. However, when the assertion is received by the ACS, the attributes are missing. What am I doing wrong?

Dim objSamlAttrStatement As New AttributeStatement()
objSamlAttrStatement.Attributes = New List(Of Attribute)
objSamlAttrStatement.Attributes.Add(New Attribute("attr1", SamlNameIdentifierFormat.Unspecified, "attr1", "Value1"))

...

objSamlAssertion.AttributeStatements.Add(objSamlAttrStatement)

When I break at this last line and step to the next line, the AttributeStatements collection still shows a count of zero.

Thanks for the help,
-Josh

----------------------------------------------------------------------

Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index