Sustainsys SAML2 How to retrieve and RelayState?

967 views Asked by At

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?

1

There are 1 answers

0
Anders Abel On BEST ANSWER

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