mfdz / rides

Storing ride offers and ride searches, standalone and with digitransit, with social login
GNU Affero General Public License v3.0
0 stars 0 forks source link

Make oauth2-client work with PHP #1

Open nandor-poka opened 5 years ago

nandor-poka commented 5 years ago

This ticket is to make a simple and easy example of working with oauth2 in PHP. use the https://github.com/thephpleague/oauth2-client. The library has pre-set for FB (and other providers) Estimate: 8h

KissRoli96 commented 5 years ago

Can I ask for some help with what exactly to start with authentication?

nandor-poka commented 5 years ago

https://github.com/thephpleague/oauth2-facebook this here is a ready-to-use package to be used with the library we linked in the original description.

Also worth reading this guide to understand how the FB provider works https://github.com/thephpleague/oauth2-client/blob/master/README.PROVIDER-GUIDE.md

Composer docs: https://getcomposer.org/doc/01-basic-usage.md#autoloading

nandor-poka commented 5 years ago

General collection of 'scopes' we can ask permission to from a user (go down to the user data section): https://developers.facebook.com/docs/facebook-login/permissions/ and the list of public by default attributes: https://developers.facebook.com/docs/facebook-login/permissions/#reference-default

frankgerhardt commented 5 years ago

Postponed.