rack-oauth2 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rack/oauth2/access_token.rb +3 -2
- data/spec/rack/oauth2/access_token_spec.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90fa661cf571c18624c58c6dfe85a3616809075f
|
4
|
+
data.tar.gz: db05caa92211bc5ce751fb85ab4ccac4e1838da0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50a031423c464511fba404360d87caf811b865996e1d9e569a397ad301fd7aab51c5742022e015264a01db6f1321290feb6c6aa793f0af0bd372241297ea4803
|
7
|
+
data.tar.gz: 72be0f93db4b6e023de1ae3a98bf779603b2d3a426bf4c06698f65b15db340364a6a1588c613e49a01eb9a3cded31a26f0fdae376cbf4f98ada02e169dadaf11
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
@@ -11,8 +11,9 @@ module Rack
|
|
11
11
|
self.send :"#{key}=", attributes[key]
|
12
12
|
end
|
13
13
|
@token_type = self.class.name.demodulize.underscore.to_sym
|
14
|
-
@httpclient = Rack::OAuth2.http_client("#{self.class} (#{VERSION})")
|
15
|
-
|
14
|
+
@httpclient = Rack::OAuth2.http_client("#{self.class} (#{VERSION})") do |config|
|
15
|
+
config.request_filter << Authenticator.new(self)
|
16
|
+
end
|
16
17
|
attr_missing!
|
17
18
|
end
|
18
19
|
|
@@ -56,5 +56,14 @@ describe Rack::OAuth2::AccessToken do
|
|
56
56
|
token.send method, resource_endpoint
|
57
57
|
end
|
58
58
|
end
|
59
|
+
|
60
|
+
context 'in debug mode' do
|
61
|
+
it do
|
62
|
+
Rack::OAuth2.debug do
|
63
|
+
token.httpclient.request_filter[-2].should be_a Rack::OAuth2::AccessToken::Authenticator
|
64
|
+
token.httpclient.request_filter.last.should be_a Rack::OAuth2::Debugger::RequestFilter
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
59
68
|
end
|
60
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|