Support the ongoing development of Laravel.io →
posted 8 years ago
Authentication
Last updated 1 year ago.
0

yes I am also having this problem (albeit a bit different).

when you are redirected back from a social network (e.g. facebook) you get given some details of the user.. you store them into your database and use the AUTH functionality to log them in. and then just check as if you would normally

auth::check(user).. or something like that (it is all there in teh authentication page)

0

@shez1983: after a few more tries I managed to get it working smoothly, the flow is like you described, i.e. create and authenticate the user once the service provider redirects to the callback url. Logging-in is also the right moment to check for updates in the profile returned by the service provider.

It's also worth noting that some users reported problems with InvalidState exception, the solution is to set the domain (default is null) for the session handler.

best, i.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

ian-p ian-p Joined 27 Oct 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.