Forums, Documentation & Knowledge Base - ComponentSpace

ReceiveSSO RelayState


https://www.componentspace.com/forums/Topic11052.aspx

By depersioa - 7/14/2020

Hi all,

We are looking to implement the usage of RelayState onto our idp-initiated SSO logins.  I see that the ReceiveSSO method has an out parameter for relaystate.  I'm wondering what the expectations are for the SAML request on how relaystate is included. 
Is it expected to be included as a query parameter on the Destination attribute for the response node in the XML, or is it expected to be included as a separate attribute/node?

Thanks
By ComponentSpace - 7/14/2020

That's correct. Relay state is a separate form variable. If you look at the HTTP post data sent to the SP there's the SAMLResponse variable and a separate RelayState variable. Both are URL-encoded.