I'm assuming you're calling var ssoResult = await _samlServiceProvider.ReceiveSsoAsync(). The ssoResult.Attributes returns an array of SamlAttribute objects. If you use SamlAttribute.ToString(), this returns the concatenated SAML attribute values. Instead, access the SamlAttribute.AttributeValues property which returns the list of AttributeValue objects. The AttributeValue.ToString() returns the individual attribute value as a string.
Regards ComponentSpace Development
|