lib/omniauth/strategies/linkedin.rb in omniauth-linkedin-oauth2-0.1.1 vs lib/omniauth/strategies/linkedin.rb in omniauth-linkedin-oauth2-0.1.2
- old
+ new
@@ -12,9 +12,13 @@
:site => 'https://api.linkedin.com',
:authorize_url => 'https://www.linkedin.com/uas/oauth2/authorization?response_type=code',
:token_url => 'https://www.linkedin.com/uas/oauth2/accessToken'
}
+ option :token_params, {
+ :mode => :query
+ }
+
option :scope, 'r_basicprofile r_emailaddress'
option :fields, ['id', 'email-address', 'first-name', 'last-name', 'headline', 'location', 'industry', 'picture-url', 'public-profile-url']
# These are called after authentication has succeeded. If
# possible, you should try to set the UID without making