# File lib/omniauth/strategies/steam.rb, line 29 def user_hash # Steam provides no information back on a openid response other than a 64bit user id # Need to use this information and make a API call to get user information from steam. if @api_key unless @user_hash uri = URI.parse("http://api.steampowered.com/") req = Net::HTTP::Get.new("#{uri.path}ISteamUser/GetPlayerSummaries/v0001/?key=#{@api_key}&steamids=#{@openid_response.display_identifier.split("/").last}") res = Net::HTTP.start(uri.host, uri.port) {|http| http.request(req) } end @user_hash ||= MultiJson.decode(res.body) else {} end end