View SamlResponse

Hello,
I’m using Idp Initiated SSO
SAMLIdentityProvider.InitiateSSO(Response, name, attributes, relayState, partnerName);
Is there a way to view/log the actual SAML Response xml that gets sent to SP?
Thanks.

If you enable SAML trace you can see the generated SAML response XML.

https://www.componentspace.com/Forums/17/Enabing-SAML-Trace

We also have an ISAMLObserver interface under the ComponentSpace.SAML2.Notifications namespace. The OnSAMLMessageSent event provides access to the SAML response XML.

You add your observer implementation by calling the static method SAMLObservable.Subscribe.

[quote]
ComponentSpace - 10/28/2022
If you enable SAML trace you can see the generated SAML response XML.

https://www.componentspace.com/Forums/17/Enabing-SAML-Trace

We also have an ISAMLObserver interface under the ComponentSpace.SAML2.Notifications namespace. The OnSAMLMessageSent event provides access to the SAML response XML.

You add your observer implementation by calling the static method SAMLObservable.Subscribe.
[/quote]

Thanks, it worked, but could you please provide the same info for ASP.NET Core version? I had to switch. Appreciate it.

For SAML for ASP.NET Core logging, please refer to:

https://www.componentspace.com/forums/7936/Enabling-SAML-Trace