Class: OmniAuth::Strategies::QQConnect

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/qq_connect.rb

Instance Method Summary collapse

Instance Method Details

#raw_infoObject



49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/omniauth/strategies/qq_connect.rb', line 49

def raw_info
  @raw_info ||= begin
    #TODO handle error case
    #TODO make info request url configurable
    client.request(:get, "https://graph.qq.com/user/get_user_info", :params => {
        :format => :json,
        :openid => uid,
        :oauth_consumer_key => options[:client_id],
        :access_token => access_token.token
      }, :parse => :json).parsed
  end
end