samedi 8 juillet 2017

Laravel 5 oauth with both social and local accounts

everyone!

In my app I want to have an abily to login from account in social networks as well as from accounts registered localy and have access to the same database on my server.

What I mean:

Scenario 1: User pressed "login with facebook" -> Get access to application features

Scenario 2: User pressed "login with account registred localy on my server" -> Get access to application features

If I login from local account then it's easy to check auth data and grant access. If I login in my app from twitter for example and got their tokens, how could I use them to access data on my server?

I found information only about how to make local login using Passport or using social services using Socialite but not both at the same time.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2tY6Ahd
via IFTTT

Aucun commentaire:

Enregistrer un commentaire