OAuth

OAuth

Google

Go to console.developers.google.com, SET UP googe+ api key to get login/user info

GOOGLE OBJECT

profile for person logged in via google { id: 'DDDDDDDDDDDDDDDD', displayName: 'Gotta Name', name: { familyName: Name, givenName: 'Gotta' }, photos: [ { value: 'https://lh4.googleusercontent.com/-qKRqcqSW1KQ/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcbnBm9wofJAL-mgNr09yt8aM5ZIag/mo/photo.jpg?sz=50' } ], gender: undefined, provider: 'google', _raw: '{\n "kind": "plus#person",\n "etag": "\\"jb1Xzanox6i8Zyse4DcYD8sZqy0/fE9yxtcSRIpmh1YsSFRVPwATpZE\\"",\n "objectType": "person",\n "id": "DDDDDDDDDDDDDDDDDDDDD",\n "displayName": "Gotta Name",\n "name": {\n "familyName": "Name",\n "givenName": "Gotta"\n },\n "image": {\n "url": "https://lh4.googleusercontent.com/-qKRqcqSW1KQ/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcbnBm9wofJAL-mgNr09yt8aM5ZIag/mo/photo.jpg?sz=50",\n "isDefault": true\n },\n "isPlusUser": false,\n "language": "en",\n "verified": false\n}\n', _json: { kind: 'plus#person', etag: '"jb1Xzanox6i8Zyse4DcYD8sZqy0/fE9yxtcSRIpmh1YsSFRVPwATpZE"', objectType: 'person', id: '109975941937054835177', displayName: 'Barbara Fick', name: { familyName: 'Fick', givenName: 'Barbara' }, image: { url: 'https://lh4.googleusercontent.com/-qKRqcqSW1KQ/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcbnBm9wofJAL-mgNr09yt8aM5ZIag/mo/photo.jpg?sz=50', isDefault: true }, isPlusUser: false, language: 'en', verified: false } }

We can then take that user info and save it to our database and expand on it.

PASSPORT

Authentication Middleware Library -An npm package that is basically authentication middleware. It simplifies the amount of code that we have to write and it basically handles a lot of the interaction between our application and the 3rd partly service, in this case Google…so those arrows between our server app and google or facebook or whoever is handled by passport

Twilio

ACCT SID, AUTH TOKEN