Auto-login user programatically?
David Langenberg
davel at uchicago.edu
Thu Jul 25 09:30:54 EDT 2013
Sounds like what you need to do is build a custom LoginHandler that handles
the user-registration / initial authentication part.
Dave
On Thu, Jul 25, 2013 at 7:25 AM, Byte Flinger <byteflinger at gmail.com> wrote:
> Hi
>
> I am trying to test the following scenarion:
>
> 1 - User fills some information about himself and submits a form
> 2 - An action is triggered which creates an user on backend server LDAP
> (on IDP side) and redirect the user back to the SP
> 3 - Once redirected to the SP, the user will be automatically logged in
> without having to fill the information he just did.
>
> 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.
>
> 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.
>
> 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.
>
> 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?
>
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
--
David Langenberg
Identity & Access Management
The University of Chicago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20130725/b2de8ae8/attachment.html
More information about the users
mailing list