Custom SAML Request Template Error "The InResponseTo attribute does not match the id in the AuthNRequest"

Last Updated: Nov 12, 2024

Overview

A new SAML connection was created, and the following error was seen:

SAML InResponseTo validation failed: The InResponseTo attribute does not match the id in the AuthNRequest

SAML Request template was used for the connection.

Applies To

  • Custom SAML Request Template
  • SAML connection

Cause

The SAML Request template used a hard-coded string value for the ID in the SAML request instead of the ID=“@@ID@@” that generates an ID value for each login request. Switching this value back to ID=“@@ID@@” got the connection working again.

Solution

Switch the ID value in the SAML Request template back to ID=“@@ID@@” so the ID can be generated automatically.