
RudreshK.17613 (Customer) asked a question.
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"
------
The link will redirect to OKTA for Authentication, Below is the encoded request (we can see the "RelayState=?ReturnUrl").
-----
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.

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!