* Tomas Hertus <
hertu...@gmail.com> [2013-03-21 18:49]:
> This works great. But I have problems now with implementing Automatic login
> after Sign up.
> The user flow is:
>
> 1. User goes to SP
> 2. Hits sign up button
> 3. User is redirected to the IdP sign up page
> 4. Fills in form
> 5. Send form
> 6. User is created in the database, validate, etc
>
> And now where is the problem, the step 7. should be *- User is redirected
> back as logged in user to the SP.* Here is the thing. I can't simply find
> how to invoke
> the authentication. I haven't found the way how to automatically log in
> user. Do you have any advice? Piece of code, where I can see something like
> that? How does it work?
That's what you asked in the "SSO SimpleSAMLphp + User Registration"
thead crecently, no? Cf. my (and others') suggestions there?
In short: After registration the subject should have an SSP session at
your IdP. Then you need to know from which SP the user came (your flow
does not involve the SP sending a SAML2 authnRequest, so you'll need
that info some other way, e.g. the SP sending along an identifier to
the IdP's registration page) and either point the user agent to the
resource (where protection and SP-initiated flow would start) or start
IdP-initiated SAML2 right then and there.
-peter