[IdP] Root Element Missing

Forge Component
Published on 9 May by Telmo Martins
33 votes
Published on 9 May by Telmo Martins


After configuring the application to use idp component, it goes to SSO.aspx and then to home.aspx and eventually customhandler/notfound.aspx throwing the error

The SAML seems fine

Under Monitoring for Outsystems, i see following
Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at OutSystems.NssSAML_Utils.CssSAML_Utils.MssSAML_Response(String ssSAML_Response, String ssSAML_Cert, String ssSAML_Issuer, RLAttributeRecordList ssSAML_AttributeStatement, Boolean ssIsSAMLEncryptedAssertion, Byte[] ssSAML_Assertion_KeyStore, String ssSAML_Assertion_KeyStorePassword, Boolean ssDebug_ReturnAllAttributes, RCValidationRecord& ssValidation, RCDataRecord& ssData)
   at ssIdP.RssExtensionSAML_Utils.MssSAML_Response(HeContext heContext, String inParamSAML_Response, String inParamSAML_Cert, String inParamSAML_Issuer, RecordList inParamSAML_AttributeStatement, Boolean inParamIsSAMLEncryptedAssertion, Byte[] inParamSAML_Assertion_KeyStore, String inParamSAML_Assertion_KeyStorePassword, Boolean inParamDebug_ReturnAllAttributes, IRecord& outParamValidation, IRecord& outParamData)

Please help

Hi Moninder,

It looks like the app is receiving an invalid SAML response.

You should access IdP app and check the logs.

Best regards,

Seems my screenshot did not make it through. When i check logs at idp side, the SAML is logged as valid

Please see attachment