Error: Failed to receive authentication request by HTTP post

Hello,

We are trying to integrate our application (SP) to an IDP. But it seems that we are getting the following after loggin into the idp log in page.

We act as an SP and we want to establish an SP initiated SSO.

SAML20SPInitPost exception error: Object reference not set to an instance of an object., stack: at ComponentSpace.SAML2.Utility.XmlSignature.GetSignatureElement(XmlElement xmlElement) at MFC.WebApp.SecureAuth.SAML20SPInitPost.ReceiveAuthnRequest(AuthnRequest& authnRequest, String& relayState) at MFC.WebApp.SecureAuth.SAML20SPInitPost.Page_Load(Object sender, EventArgs e)

Does anyone has any idea on this issue?

Thanks in advance,
support

It looks like you’re using the SAML low-level API.
We always recommend using the SAML high-level API wherever possible as it’s easier to use.
Have you checked that the XmlElement passed into GetSignatureElement isn’t null?
If there’s still an issue, please enable SAML trace and send the generated log file as an email attachment to support@componentspace.com mentioning your forum post.
https://www.componentspace.com/Forums/17/Enabing-SAML-Trace

[quote]
ComponentSpace - 3/21/2019
It looks like you're using the SAML low-level API.
We always recommend using the SAML high-level API wherever possible as it's easier to use.
Have you checked that the XmlElement passed into GetSignatureElement isn't null?
If there's still an issue, please enable SAML trace and send the generated log file as an email attachment to support@componentspace.com mentioning your forum post.
https://www.componentspace.com/Forums/17/Enabing-SAML-Trace
[/quote]

Hi,

It is now fixed. It seems that we are missing some attributes on the idp side. They changed it from idp initiated to SP initiated and they have not filled all the necessary attributes.

Thank you.


Thanks for the update.