zquestz/omniauth-google-oauth2 — Issue #1: Name field should be user's real name instead of email, if possible
Author: jimmycuadra
Created: 2011-11-08 10:02:31+00:00
State: open

Currently, all the keys in the info hash returned in the callback phase are being set to the authenticated user's email address. It would be more useful if the `name` key was set to the user's real name instead.

I did some digging around in both Google's documentation and OmniAuth's documentation, and there doesn't seem to be an obvious way to do this – at least not as cleanly as with Facebook and Twitter. You can get more information about the authenticated user via the Google+ API using the API endpoint at https://www.googleapis.com/plus/v1/people/me, but I believe this requires that the user be signed up for Google+.

Any ideas on how to implement this? It's not clear which of the Google APIs is most suitable for retrieving basic data about a user account.

/cc @mbleigh