omniauth-linkedin-oauth2 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 759c38cff98d991bffca8996eea8b5ad07beea39
|
4
|
+
data.tar.gz: e798aff9fc5ca9bded9435d4487fbfc03e823c53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3ef208f2ca1f960cb56f8697cc6796a6c791f024dd3bfc3f1a21347e9eacc3e1733b4a0c94947b1bca075a9c93e1642eb55d99d5b42ae6bff673577f7441565
|
7
|
+
data.tar.gz: 39885a8696fc64dcba20b683ee97716b148c6e85612a5a7027ed8eecc199465c35dc10f14b2c594b039cef1d17f362976f983feccfe4cd87f4700b7744dccc4c
|
@@ -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
|