<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00009hL2AmSAKOkta Classic EngineIntegrationsAnswered2020-10-21T16:27:27.000Z2020-10-13T18:18:30.000Z2020-10-21T16:27:27.000Z

RudreshK.17613 (Customer) asked a question.

Loosing 'RelayState=?ReturnUrl' after Okat Login. (Relay State is not sent back on SAML Login Response)

Hi Team,

 

After Okta Authentication, unable to get the RelayState parameter in the .net Application find the below issue details.

 

I have set up SAML SSO for one of my test application (.net).

Below is my SAMLSSO URL with "RelayState=?ReturnUrl"

https://dev-711555.okta.com/app/marlabsdev711555_provideridentity_1/exkvy7zsdd8RdR7e54x6/sso/saml?RelayState=?ReturnUrl=%2fdemoweb%2fMyProfile%2fIndex

 

------

 

The link will redirect to OKTA for Authentication, Below is the encoded request (we can see the "RelayState=?ReturnUrl").

 

https://dev-711555.okta.com/login/login.htm?fromURI=%2Fapp%2Fmarlabsdev711555_provideridentity_1%2Fexkvy7zsdd8RdR7e54x6%2Fsso%2Fsaml%3FRelayState%3D%3FReturnUrl%3D%252fdemoweb%252fMyProfile%252fIndex%26SAMLRequest%3DfVJbb4IwFP4rpO8VUEBpxIQhZiZuI8L2sJelwGE2gZa1Zbdfv4oucQ8z6UNz8p3vlrNUtGt7Eg%252f6wPfwNoDS1nYdoRcIZyEN5iWmftVgr%252fTnOAzMjzbgNrUfVDOfIusJpGKCR2g6cZC1VWqALVeacm1GztTBrnmzwvWJ6xIvfEZWJoUWlWhvGK8Zf43QIDkRVDFFOO1AEV2RPL7bEcNIyhNIkduiyHD2kBfIipUCqY1oIrgaOpA5yHdWweN%252bF6GD1j2x7VZUtD0IpYnvTRdTu4ZOfEBpH2MKyb7Bzk3sMwGyPruWKzI2cd1PfzaPVssjmoyB5cX%252b9XX6ax2tglkSeOkmwUm89rAXL1Icpn6AnXnqBInvLeZOsrQvRE6KPbk3rNt1JlpWfVkbITuq%252fxd1J%252b44YTVuRigZuOqhYg2D2lTZtuIjkUA1REjLwVRhr06qf09i9QM%253d

 

-----

 

After Okta Authentication (providing Username and Password) the link redirects to below URL(loosing ?RelayState=?ReturnUrl Parameter) .

 

https://dev-711555.okta.com/app/marlabsdev711555_provideridentity_1/exkvy7zsdd8RdR7e54x6/sso/saml?RelayState=?ReturnUrl&SAMLRequest=fVLJboMwEP0V5LvDvlkBiRKiIqUtCrSHXioHO40lsKltun19CUml9NBIcxq9eZtmqXDfDSgb9YFv6dtIlTbKVQJerMDBmLQEuoFNoGfjEMZuvIeYeCTyWuK6PgbGE5WKCZ4AZ2EBo1RqpCVXGnM9rSzHgvY0bmOHyI2RHTwDo5JCi1Z0N4wTxl8TMEqOBFZMIY57qpBuUZ3dbdDEiHYnkEK3TVPB6qFugJEpRaWeRHPB1dhTWVP5zlr6uN0k4KD1gEyzEy3uDkJp5HtO5JiE9uKD7sxjTCHZNzXrKfaZABiffccVmpu47mc4mwfp8ohGc2B5cX%2f9HP9aB2ng5oFXrHOYZysPellUwLjwA2iFhRXkvheFVr40L0ROigO6n1jLVSU61n4ZayF7rP8XtRf2vGEE7mcoGrkaaMv2jJKpyq4TH7mkWNMEaDlOVZjpSfXvS6Q%2f&fromLoginToken=Db9XAyd3Zv3Deczfg5I4mjTp2i5UYIffxWY_EloCQTcg1NQloGWZFSj1l7nKPLe61mtT_IWGOVRqqiDxz1BsVhMCTue2NAinWCMuQEGuHwj8HPPfgpl9npJquCMJYTm4uVeCwhHI7KmHSW_hniqmZhhIsSp9KGRs3LSnXca_OvkCXi8RLrxEPujbtxzo7Q66dabObD9DhOmpINnm3YhESGGKAIaGmha7RMx9IrW4AAoBfK5MyzB1cHhfsKuN2nNv9OsvoR_VIst8wo5uRr1wM6MUNQ9OgFEt6AU765FqQhhd9m2WFRXapBCkLrEPTAU4Vm5Eq7WvRPC556F2Jz9Riw

--------

 

Please let us know how to retain the 'RelayState=?ReturnUrl' paramenter after Okta login, or i'm i missing something in configuration related to RelayState.

 

Any help is Appreciated.


  • User15840126892072011556 (Vendor Management)

    Hi,

    The RelayState parameter seems to be wrong.

    The relay state field has another '?' to begin another query. Although, there is another '?' to start a query before RelayState as well which I believe is wrong. (?RelayState=?ReturnUrl).

    Also, I saw that you have already opened a case for Okta Support and the troubleshooting will continue there.

    Thanks!

     

    Expand Post
This question is closed.
Loading
Loosing 'RelayState=?ReturnUrl' after Okat Login. (Relay State is not sent back on SAML Login Response)