# File lib/omniauth/strategies/google.rb, line 52 def user_hash # Google is very strict about keeping authorization and # authentication separated. # They give no endpoint to get a user's profile directly that I can # find. We *can* get their name and email out of the contacts feed, # however. It will fail in the extremely rare case of a user who has # a Google Account but has never even signed up for Gmail. This has # not been seen in the field. @user_hash ||= MultiJson.decode(@access_token.get("http://www.google.com/m8/feeds/contacts/default/full?max-results=1&alt=json").body) end