SAML SSO Error - "SAML Response body must contain RelayState"

NarenderSingh 61 Reputation points
2023-02-04T08:07:36.4266667+00:00

HI Team,

I am trying to use Azure AD as identity provider to IBM CLoud. I am getting below error now -

please help.

{"error":"invalid_request","error_description":"SAML Response body must contain RelayState"}


Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,473 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. 2023-03-02T05:04:37.29+00:00

    Hello, IBMid supports both IdP and SP initiated flows. In your case it looks like your application is expecting a RelayState param which could signal an SP initiated flow.

    In case you're attempting:

    IdP initiated

    You need to set the Relay State in the enterprise app -> Single sign-on -> Basic SAML Configuration form:

    User's image

    SP inititated

    Your application (SP) needs to send the RelayState value as part of the SAML Authentication Request. It can be sent as an HTTP Parameter alongside a SAML AuthRequest..

    You can verify if you application is actually sending a RelayState param collecting a network trace with Fiddler or with the browser.

    Let us know if you need additional assistance. If the answer was helpful, please accept it so that others can find a solution.

    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more