{
"fault": {
"faultstring": "ValidateSAMLAssertion[Validate-SAML-Assertion]: Error while evaluating xpath /samlp:Response/saml:Assertion",
"detail": {
"errorcode": "steps.saml.validate.ErrorEvaluatingXPath"
}
}
}
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
ID="_3e0cac0d-623e-47b0-bc5e-6be2e3ec30b5"
Version="2.0"
IssueInstant="2020-05-08T08:31:06.766Z"
Destination="https://makmoonish-trial-test.apigee.net/samltoken/new"
>
<Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">https://sts.windows.net/805bc75c-ff3e-49fa-84a9-57d593c3d212/</Issuer>
<samlp:Status>
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
</samlp:Status>
<Assertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion"
ID="_119299ad-bc9d-4c80-bbe3-42a3cee40e00"
IssueInstant="2020-05-08T08:31:06.766Z"
Version="2.0"
>
<Issuer>https://sts.windows.net/805bc75c-ff3e-49fa-84a9-57d593c3d212/</Issuer>
</Assertion>
</samlp:Response>
I have tried various XPATH combination in SAML validate assertion including /samlp:Response/Assertion , /samlp:Response/saml:Assertion ,Response/Assertion
Try //Assertion
It will give all assertions in xml
{ “fault”: { “faultstring”: “ValidateSAMLAssertion[Validate-SAML-Assertion]: Unable to resolve xpath //Assertion to a SAML Assertion”, “detail”: { “errorcode”: “steps.saml.validate.XPathResolutionFailed” } } }
Could you pls help