Does Azure AD support RelayState as form variable

Aaron rallls 1 Reputation point

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

    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 :