Class: OmniAuth::Strategies::LinkedIn
- Inherits:
-
OAuth
- Object
- OAuth
- OmniAuth::Strategies::LinkedIn
- Defined in:
- lib/omniauth/strategies/linkedin.rb
Instance Method Summary collapse
Instance Method Details
#raw_info ⇒ Object
46 47 48 49 50 |
# File 'lib/omniauth/strategies/linkedin.rb', line 46 def raw_info fields = .fields fields.map! { |f| f == "picture-url" ? "picture-url;secure=true" : f } if [:secure_image_url] @raw_info ||= MultiJson.decode(access_token.get("/v1/people/~:(#{fields.join(',')})?format=json").body) end |
#request_phase ⇒ Object
52 53 54 55 56 |
# File 'lib/omniauth/strategies/linkedin.rb', line 52 def request_phase .request_params ||= {} .request_params[:scope] = .scope.gsub("+", " ") super end |