<div dir="ltr"><div>We have an application which is integrated with shibboleth IDP(2.4.0) to provide SSO Solution. I am using 'externalAuth' Login handler to authenticate. Here my application is communicating</div><div>two times with Shibboleth Idp.</div><div><br></div><div>1) When the user try to access to one of our application(SP), We just prepare a Saml request,Relaystate and send it to the IDP, then</div><div>it will execute the externalAuth handler and display the login page to the user.</div><div><br></div><div>Relaystate preparation:</div><div><br></div><div>                long time = System.currentTimeMillis();</div><div><span class="" style="white-space:pre">            </span>String relayState = Base64Support.encode((time + "").getBytes(),true);</div><div><span class="" style="white-space:pre">           </span>relayState = "ss:mem:" + relayState;</div><div><br></div><div>Question: How this relaystate will be used at Shibboleth IdP side? will it be stored in cookie?</div><div><br></div><div><br></div><div>2) Again we are redirecting to the idp, once the credentials are enterd by user in login page validated against our database, then the</div><div>idp is giving saml response and "relaystate" which we have sent in the above step.</div><div><br></div><div>Question: Why shibboleth IdP is sending "relaystate" as a part of response, what is the main intention of that? </div><div><br></div><div><br></div><div><br></div><div>I have gone through the shibboleth documention but i am not able to get a clear picture of this <b>relaystate</b>. Please </div><div>clarify my doubts about "relaysate".</div><div><br></div><div><br></div></div>