class OmniAuth::Strategies::Yahoo

An omniauth 1.0 strategy for yahoo authentication

Public Instance Methods

raw_info() click to toggle source

Return info gathered from the v1/user/:id/profile API call

# File lib/omniauth/strategies/yahoo.rb, line 51
def raw_info
  # This is a public API and does not need signing or authentication
  request = "https://social.yahooapis.com/v1/user/#{uid}/profile?format=json"
  @raw_info ||= MultiJson.decode(access_token.get(request).body)
rescue ::Errno::ETIMEDOUT
  raise ::Timeout::Error
end
user_info() click to toggle source

Provide the “Profile” portion of the raw_info

# File lib/omniauth/strategies/yahoo.rb, line 61
def user_info
  @user_info ||= raw_info.nil? ? {} : raw_info["profile"]
end