
sabariv.86873 (Customer) asked a question.
Hello Team,
please find the saml login request:
Here i pass relaystate value to okta but it is not sent back in the acs call.
Below is the response from OKTA.
Please find the SAML Response:
<?xml version="1.0" encoding="UTF-8"?>
<saml2p:Response Destination="http://localhost:8443/saml/SSO" ID="id14297284266932014318805624"
InResponseTo="_1ed7715e-da74-4c9a-8e45-3a2b546592be" IssueInstant="2020-01-06T09:28:04.187Z"
Version="2.0" xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol">
<saml2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity"
xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">http://www.okta.com/exk1pt9i4l3HCmZMJ357</saml2:Issuer>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig*">
<ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n*"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more*rsa-sha256"/>
<ds:Reference URI="*id14297284266932014318805624">
<ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig*enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n*"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc*sha256"/>
<ds:DigestValue>Fk8fKdc6OgMWMmjbNBJNMWpoECdIdTU4GQqdjpo46+8=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>SeEStZCUDDBxK/T2nWTFPqmYt5O66kRKAlCCeJQ7Hbkn4oRY63CSTicv1DM16ms/NJBmUbXy6KJKZTaN+KK5qFN6MbUmGbcPTStyxp7quiZJo1A+EW+UueM13kxUWYjTgQ4jp91EPk+H3+lx4X6i48gae562zmc6YROZO6Ty+XG1YiprOzL8DxenPCtbLwAOth5qepWmcyalYGn16ceZ4l7iOAeB6/bDsmYodpLafArcteEngvaCPu9Jl1yAsTLsb7WvFYqmASIZ8xnfZedm7WP2WkMDFiv+jOM+w659goMAsRJ1yb5KPQwwu+S8Q180bUxeJiFTF3DwFsBS2BXxrw==</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>CERTIFICATE</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<saml2p:Status xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"><saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/></saml2p:Status>
<saml2:Assertion ID="id142972842670097291659493949" IssueInstant="2020-01-06T09:28:04.187Z"
Version="2.0" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
<saml2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity"
xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">http://www.okta.com/exk1pt9i4l3HCmZMJ357</saml2:Issuer>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig*">
<ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n*"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more*rsa-sha256"/>
<ds:Reference URI="*id142972842670097291659493949">
<ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig*enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n*"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc*sha256"/>
<ds:DigestValue>StYLy/2SWViGX621nY8KWB5EtVtFumfDcC161zBVB4A=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>obft7Oi9Rk5r7TB4cARM+KIfFg052vI28gqrDlorXAsNAjPk4hFALu31XwlSo1zrro8IzHpznXMRjxc0u+N4MY4102EMjiwLZ8PODNolLHmVukjGCh5dBn9Ad4TbtGdxhvk8lZ8DAyQ4iDS3AiOOR08rYqkmfbXEvIMyoD47nAumvjLQtCp1x0EnUxiKNKsRkExGF3nCArobKzx9FwR5ZXmxpTiWvqAglfwLRcZ8otZqNjJackmVHTRW18jeQTF09mqMNpLoEDyAKTGAPDKEHp8BjsvscJzgyhMks8Na6P0VJTEmcak5O0pKYdq0mDeb+ozsAyaNV6J9BO4h05EFmw==</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>CERTIFICATE</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<saml2:Subject xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
<saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">n.sabarivignesh@gmail.com</saml2:NameID>
<saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"><saml2:SubjectConfirmationData InResponseTo="_1ed7715e-da74-4c9a-8e45-3a2b546592be"
NotOnOrAfter="2020-01-06T09:33:04.187Z" Recipient="http://localhost:8443/saml/SSO"/></saml2:SubjectConfirmation>
</saml2:Subject>
<saml2:Conditions NotBefore="2020-01-06T09:23:04.187Z" NotOnOrAfter="2020-01-06T09:33:04.187Z"
xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
<saml2:AudienceRestriction>
<saml2:Audience>http://localhost:8443/saml/metadata</saml2:Audience>
</saml2:AudienceRestriction>
</saml2:Conditions>
<saml2:AuthnStatement AuthnInstant="2020-01-06T09:28:04.187Z"
SessionIndex="_1ed7715e-da74-4c9a-8e45-3a2b546592be"
xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
<saml2:AuthnContext>
<saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml2:AuthnContextClassRef>
</saml2:AuthnContext>
</saml2:AuthnStatement>
</saml2:Assertion>
</saml2p:Response>
What could be wrong here?

Okta will not include RelayState in SAML Response. It will be in the BODY when Okta POST SAML Response to your Service provider. you can use any web debugger tool (fiddler) to intercept web browser traffic and look for POST call from Okta to your SP.