fb_graph 2.0.0 → 2.0.1
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.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/fb_graph/auth.rb +2 -1
- data/spec/fb_graph/auth_spec.rb +4 -0
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.
|
|
1
|
+
2.0.1
|
data/lib/fb_graph/auth.rb
CHANGED
|
@@ -10,7 +10,8 @@ module FbGraph
|
|
|
10
10
|
:secret => client_secret,
|
|
11
11
|
:host => URI.parse(ROOT_URL).host,
|
|
12
12
|
:authorization_endpoint => '/oauth/authorize',
|
|
13
|
-
:token_endpoint => '/oauth/access_token'
|
|
13
|
+
:token_endpoint => '/oauth/access_token',
|
|
14
|
+
:redirect_uri => options[:redirect_uri]
|
|
14
15
|
)
|
|
15
16
|
if options[:cookie]
|
|
16
17
|
from_cookie options[:cookie]
|
data/spec/fb_graph/auth_spec.rb
CHANGED
|
@@ -10,8 +10,12 @@ describe FbGraph::Auth do
|
|
|
10
10
|
its(:client) { should be_a(Rack::OAuth2::Client) }
|
|
11
11
|
describe 'client' do
|
|
12
12
|
subject { auth.client }
|
|
13
|
+
let :optional_attributes do
|
|
14
|
+
{:redirect_uri => 'https://client.example.com/callback'}
|
|
15
|
+
end
|
|
13
16
|
its(:identifier) { should == 'client_id' }
|
|
14
17
|
its(:secret) { should == 'client_secret' }
|
|
18
|
+
its(:redirect_uri) { should == 'https://client.example.com/callback' }
|
|
15
19
|
end
|
|
16
20
|
|
|
17
21
|
context 'when invalid cookie given' do
|