<div dir="ltr">Hi<div><br></div><div>I am trying to test the following scenarion:</div><div><br></div><div>1 - User fills some information about himself and submits a form</div><div>2 - An action is triggered which creates an user on backend server LDAP (on IDP side) and redirect the user back to the SP</div>
<div>3 - Once redirected to the SP, the user will be automatically logged in without having to fill the information he just did.</div><div><br></div><div>The idea is to trigger a login request to Shibboleth together with the user creation on LDAP by programatically calling Unsolicited SSO with the required information however I am uncertain how to handle the part where the user is automatically logged in once he is redirected to the SP.</div>
<div><br></div><div>I could redirect the SAML Response gotten from the login request all the way back to the SP (Via the user browser) however if I understand correctly, once that happens the SP will just redirect to Shibboleth and because the user browser will not have the session cookie set, Shibboleth will once again ask for a login.</div>
<div><br></div><div>I am guessing that if the SP uses that SAML Response when redirecting to Shibboleth, Shibboleth will notice the user is already logged in, set the necessary cookies and redirect back to SP, however that sounds like a lot of unnecessary back and forth.</div>
<div><br></div><div>Are there any suggestions on a better of going about this? I am guessing the cookie is required for recognizing the user as logged in?</div></div>