Search code examples
sustainsys-saml2

Sustainsys SAML2 How to retrieve and RelayState?


I have a Salesforce IdP initiated authentication and authentication works well, but now I need to use RelayState to navigate deeper into the .NET app.

I am using the Sustainsys MVC library and cannot find an example how to retrieve the RelayState parameter. The Sustainsys documentation has only one mention of RelayState. How do I retrieve the RelayState URL parameter?


Solution

  • Set the property IdentityProvider.RelayStateUsedAsReturnUrl to true and the ReturnUrl will be used as the redirect Url after Idp-initiated sign on.