# File lib/omniauth/strategies/oauth/google_health.rb, line 46 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/health/feeds/profile/default/default?digest=true&alt=json').body) end