Class: OmniAuth::Strategies::LinkedIn

Inherits:
OAuth
  • Object
show all
Defined in:
lib/omniauth/strategies/linkedin.rb

Instance Method Summary collapse

Instance Method Details

#raw_infoObject



46
47
48
49
50
# File 'lib/omniauth/strategies/linkedin.rb', line 46

def raw_info
  fields = options.fields
  fields.map! { |f| f == "picture-url" ? "picture-url;secure=true" : f } if options[:secure_image_url]
  @raw_info ||= MultiJson.decode(access_token.get("/v1/people/~:(#{fields.join(',')})?format=json").body)
end

#request_phaseObject



52
53
54
55
56
# File 'lib/omniauth/strategies/linkedin.rb', line 52

def request_phase
  options.request_params ||= {}
  options.request_params[:scope] = options.scope.gsub("+", " ")
  super
end