omniauth-linkedin-oauth2 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9124e447236bc2423a462d3d4959912eff31f2ac
4
- data.tar.gz: 16d86d67417a58d7628be577b0b85d6acf49bf06
3
+ metadata.gz: 759c38cff98d991bffca8996eea8b5ad07beea39
4
+ data.tar.gz: e798aff9fc5ca9bded9435d4487fbfc03e823c53
5
5
  SHA512:
6
- metadata.gz: 8871c4b53aa83e892efafa0e1fdb421466de1d791f33c9db8fe815d205e7f41dd931217ecec60e525f32b6ab12d3e5e024aedba5d79a8e7ff2af195f36aa2f29
7
- data.tar.gz: 00d6fbad05ca4caf7e4a3d35292b73e322d06147ba71f2eb64e380651a570114709a4a27a4b92910903a43cfe1e01e7d2cf87625029b57d5978a584ce13bec85
6
+ metadata.gz: c3ef208f2ca1f960cb56f8697cc6796a6c791f024dd3bfc3f1a21347e9eacc3e1733b4a0c94947b1bca075a9c93e1642eb55d99d5b42ae6bff673577f7441565
7
+ data.tar.gz: 39885a8696fc64dcba20b683ee97716b148c6e85612a5a7027ed8eecc199465c35dc10f14b2c594b039cef1d17f362976f983feccfe4cd87f4700b7744dccc4c
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module LinkedInOAuth2
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -11,7 +11,8 @@ module OmniAuth
11
11
  option :client_options, {
12
12
  :site => 'https://api.linkedin.com',
13
13
  :authorize_url => 'https://www.linkedin.com/uas/oauth2/authorization?response_type=code',
14
- :token_url => 'https://www.linkedin.com/uas/oauth2/accessToken'
14
+ :token_url => 'https://www.linkedin.com/uas/oauth2/accessToken',
15
+ :token_method => :get
15
16
  }
16
17
 
17
18
  option :token_params, {
@@ -21,6 +21,10 @@ describe OmniAuth::Strategies::LinkedIn do
21
21
  subject.client.options[:token_url].should eq('https://www.linkedin.com/uas/oauth2/accessToken')
22
22
  end
23
23
 
24
+ it 'has correct token url' do
25
+ subject.client.options[:token_method].should eq(:get)
26
+ end
27
+
24
28
  it 'posts params using the :query mode' do
25
29
  subject.options.token_params[:mode].should == :query
26
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-linkedin-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Décio Ferreira