Forums, Documentation & Knowledge Base - ComponentSpace

Logging failed Assertions

By br1003 - 3/22/2021


I've been logging Assertions as they come in but whenever ReceiveSsoAsync throws it doesn't look like the OnSamlAssertionReceived happens so my delegate never gets called. I've got an issue where the Assertion is parsed normally but the Status is not Success and I want to see what's in the Assertion in production.

Is there something I can do to get the assertion logged without a successful ReceiveSsoAsync? Am I doing something wrong or is this just the way it has to be?

I assign the delegate prior to calling ReceiveSsoAsync.

By ComponentSpace - 3/23/2021

That's true. However, you could use OnSamlResponseReceived to handle unsuccessful SAML responses and OnSamlAssertionReceived for successful SAML responses.