Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/omniauth/strategies/linkedin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LinkedIn < OmniAuth::Strategies::OAuth2
}

option :scope, 'r_basicprofile r_emailaddress'
option :fields, ['id', 'email-address', 'first-name', 'last-name', 'headline', 'location', 'industry', 'picture-url', 'public-profile-url']
option :fields, ['id', 'email-address', 'first-name', 'last-name', 'headline', 'location', 'industry', 'picture-url', 'public-profile-url', 'summary']

# These are called after authentication has succeeded. If
# possible, you should try to set the UID without making
Expand All @@ -36,7 +36,8 @@ class LinkedIn < OmniAuth::Strategies::OAuth2
:image => raw_info['pictureUrl'],
:urls => {
'public_profile' => raw_info['publicProfileUrl']
}
},
:summary => raw_info['summary']
}
end

Expand Down
1 change: 1 addition & 0 deletions spec/omniauth/strategies/linkedin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
it { expect(subject.info).to have_key :description }
it { expect(subject.info).to have_key :image }
it { expect(subject.info).to have_key :urls }
it { expect(subject.info).to have_key :summary }
end
end

Expand Down