omniauth-linkedin-oauth2 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 533bd70ad57ac9aa69c1148bc3b0e3781361e587
4
- data.tar.gz: f2938ae705278dbaca57a12f1e667d0282c96f35
3
+ metadata.gz: 9124e447236bc2423a462d3d4959912eff31f2ac
4
+ data.tar.gz: 16d86d67417a58d7628be577b0b85d6acf49bf06
5
5
  SHA512:
6
- metadata.gz: b41f44e4a037a289ea4620f94e81e4dad1eef0592d5cecffd5fcd16b3c2f4634fe618b0bae212b4232b691ae127b53b93a8e43f17ba485cc1a19444ead3e00be
7
- data.tar.gz: e9a2a02ff5da9247e54a4d721421e097830b2acd09582f19bbd6819cad8d55a44f6e5c94b29709c30cc5c9d900d16bd411dbe6b948995075c1dbc5678e3f5f71
6
+ metadata.gz: 8871c4b53aa83e892efafa0e1fdb421466de1d791f33c9db8fe815d205e7f41dd931217ecec60e525f32b6ab12d3e5e024aedba5d79a8e7ff2af195f36aa2f29
7
+ data.tar.gz: 00d6fbad05ca4caf7e4a3d35292b73e322d06147ba71f2eb64e380651a570114709a4a27a4b92910903a43cfe1e01e7d2cf87625029b57d5978a584ce13bec85
data/.gitignore CHANGED
@@ -15,3 +15,5 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .ruby-gemset
19
+ .ruby-version
data/example/config.ru CHANGED
@@ -8,7 +8,7 @@ require 'omniauth-linkedin-oauth2'
8
8
 
9
9
  class App < Sinatra::Base
10
10
  get '/' do
11
- redirect '/auth/linkedin_oauth2'
11
+ redirect '/auth/linkedin'
12
12
  end
13
13
 
14
14
  get '/auth/:provider/callback' do
@@ -25,7 +25,7 @@ end
25
25
  use Rack::Session::Cookie, :secret => 'change_me'
26
26
 
27
27
  use OmniAuth::Builder do
28
- provider :linkedin_oauth2, ENV['LINKEDIN_KEY'], ENV['LINKEDIN_SECRET']
28
+ provider :linkedin, ENV['LINKEDIN_KEY'], ENV['LINKEDIN_SECRET']
29
29
  end
30
30
 
31
31
  run App.new
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module LinkedInOAuth2
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -14,6 +14,10 @@ module OmniAuth
14
14
  :token_url => 'https://www.linkedin.com/uas/oauth2/accessToken'
15
15
  }
16
16
 
17
+ option :token_params, {
18
+ :mode => :query
19
+ }
20
+
17
21
  option :scope, 'r_basicprofile r_emailaddress'
18
22
  option :fields, ['id', 'email-address', 'first-name', 'last-name', 'headline', 'location', 'industry', 'picture-url', 'public-profile-url']
19
23
 
@@ -20,6 +20,10 @@ describe OmniAuth::Strategies::LinkedIn do
20
20
  it 'has correct token url' do
21
21
  subject.client.options[:token_url].should eq('https://www.linkedin.com/uas/oauth2/accessToken')
22
22
  end
23
+
24
+ it 'posts params using the :query mode' do
25
+ subject.options.token_params[:mode].should == :query
26
+ end
23
27
  end
24
28
 
25
29
  describe '#callback_path' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-linkedin-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Décio Ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-31 00:00:00.000000000 Z
11
+ date: 2013-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.0.3
139
+ rubygems_version: 2.1.8
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: A LinkedIn OAuth2 strategy for OmniAuth.