Forums, Documentation & Knowledge Base - ComponentSpace

SAML Response Signature

By sgadev - 2/4/2021

Hello everyone,

Is "SignSamlResponse": true enough to include Signature in the SAML response?
When I set "SignAssertion": true I'm able to see the Signature within the assertion message part.

Why I cannot see the Signature in the SAML Response?
I expect the Signature to be included in the SAML Response when "SignSamlResponse" is set to true.

I'm using the example code SAMLv20.Core-licensed that comes with the full license of .NET Core product version.
No changes are made in the configuration.
I've tried in some other testing applications but without success.

Many thanks
By ComponentSpace - 2/8/2021

These two events work with the SamlResponse object rather than the serialized XML. This means they don't include the XML signature.

If you wish to see the SAML response including the XML signature, use the OnSendMessage and OnReceiveMessage events which work with the serialized XML (ie XmlElement).