adamwathan / eloquent-oauth

Braindead simple social login with Laravel and Eloquent.
370 stars 44 forks source link

Log in by access token #85

Open petert0th opened 8 years ago

petert0th commented 8 years ago

Hello, first of all, thank you for your hard work, this library works wonderfully.

I would like to ask you, if it's possible to log in / create a user by a valid facebook access token. I'm posting it to my laravel application from a mobile client, and i want to get the user associated with the facebook token and generate another token to use for authenticating my api requests.

Best, Peter

adamwathan commented 8 years ago

Hmmm I don't think this would be super easy the way things are right now, but I can expose some of the internals a bit so you can work with it directly.

Let me stick this on my to-do list and see if I can get it done over the weekend.

petert0th commented 8 years ago

Thank you:) I was thinking about somehow injecting the token to the login process where it queries the token, but honestly, i kinda got lost in the code.