Does Azure AD support RelayState as form variable

Aaron rallls 1 Reputation point
2019-12-17T17:42:10.423+00:00

I am creating a SP-initiated SAML flow where I need to send the RelayState via a form POST variable along with the SAMLRequest.

Is this allowed and if so how do I configure it?

Currently, the communication coming back from Azure AD has the SAMLResponse in the form variable and an empty RelayState form parameter.

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

1 answer

Sort by: Most helpful
  1. FrankHu-MSFT 976 Reputation points
    2019-12-17T18:29:21.55+00:00

    You should be able to add the relaystate as a query parameter in your request and that should configure the SAMLRequest.

    I'm not sure what you're requesting in particular "post variable along with the samlrequest". Are you requesting the AAD server to send another post request with the relaystate in the body of the post to your server?

    See here for more info on that : https://social.msdn.microsoft.com/Forums/azure/en-US/e6f5d9ee-9ca5-4027-971d-b89735fe2a85/does-azure-support-dynamic-relaystate


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.