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.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,914 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. FrankHu-MSFT 971 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