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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9124e447236bc2423a462d3d4959912eff31f2ac
|
4
|
+
data.tar.gz: 16d86d67417a58d7628be577b0b85d6acf49bf06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8871c4b53aa83e892efafa0e1fdb421466de1d791f33c9db8fe815d205e7f41dd931217ecec60e525f32b6ab12d3e5e024aedba5d79a8e7ff2af195f36aa2f29
|
7
|
+
data.tar.gz: 00d6fbad05ca4caf7e4a3d35292b73e322d06147ba71f2eb64e380651a570114709a4a27a4b92910903a43cfe1e01e7d2cf87625029b57d5978a584ce13bec85
|
data/.gitignore
CHANGED
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/
|
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 :
|
28
|
+
provider :linkedin, ENV['LINKEDIN_KEY'], ENV['LINKEDIN_SECRET']
|
29
29
|
end
|
30
30
|
|
31
31
|
run App.new
|
@@ -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.
|
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-
|
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.
|
139
|
+
rubygems_version: 2.1.8
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: A LinkedIn OAuth2 strategy for OmniAuth.
|