In a SAML Service Provider (SP) initiated login flow, when an unauthenticated user tries to open a Salesforce URL, a SAML request is generated by Salesforce and sent to the configured Identity Provider (IdP), who must then authenticate the user and send back a SAML response.
In this case, a SAML SSO login flow may fail with 'InResponseTo: Invalid' in the following scenarios.
1. The SAML response contains an InResponseTo value that does not match that of the SAML request.
2. The InResponseTo value is generated as soon as the My Domain page loads, and expires after 8 minutes. As a result, this error is returned if the SAML response is sent to Salesforce more than 8 minutes after loading the My Domain page.
On another hand, in the IdP initiated flow, the same error message may be returned if the SAML response contains an InResponseTo value, which is unexpected in this scenario.
For more information on SAML Request and Response, please see the Salesforce Help on SAML SSO Flows or watch the Support YouTube video on how to Capture SAML Request and Response Using the SAML Tracer Extension .
Visit the Salesforce Developer Community to start a discussion or review past discussions on SSO Login errors.
000385754

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.