Yesware / omniauth-google

MIT License
42 stars 24 forks source link

Use profile scope instead of contacts? #6

Open grantneufeld opened 12 years ago

grantneufeld commented 12 years ago

When omniauth-google was first written, I don't think the profile scope was available. Now Google has a couple userinfo scopes that may be better to use than the contacts scope:

userinfo.profile:

Gain read-only access to basic profile information, including a user identifier, name, profile photo, profile URL, country, language, timezone, and birthdate.

userinfo.email:

Gain read-only access to the user's email address.

See Google's description (including the full scope urls) at: https://developers.google.com/accounts/docs/OAuth2Login#scopeparameter

MatthewBellows commented 12 years ago

Thanks Grant!

grantneufeld commented 12 years ago

I haven't looked at it yet (preoccupied with other tasks this week), but @davidkpham has posted a pull request that apparently switches to the new userinfo scopes as described above: https://github.com/Yesware/omniauth-google/pull/7