rack-oauth2 1.5.1 → 1.6.0
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/server/abstract/handler.rb +8 -0
- data/lib/rack/oauth2/server/authorize.rb +1 -1
- data/lib/rack/oauth2/server/authorize/code.rb +1 -1
- data/lib/rack/oauth2/server/authorize/extension/code_and_token.rb +1 -1
- data/lib/rack/oauth2/server/authorize/token.rb +1 -1
- data/lib/rack/oauth2/server/rails/authorize.rb +1 -1
- data/lib/rack/oauth2/server/resource.rb +1 -1
- data/lib/rack/oauth2/server/resource/bearer.rb +1 -1
- data/lib/rack/oauth2/server/resource/mac.rb +1 -1
- data/lib/rack/oauth2/server/token.rb +1 -1
- data/lib/rack/oauth2/server/token/authorization_code.rb +1 -1
- data/lib/rack/oauth2/server/token/client_credentials.rb +1 -1
- data/lib/rack/oauth2/server/token/extension/example.rb +1 -1
- data/lib/rack/oauth2/server/token/jwt_bearer.rb +1 -1
- data/lib/rack/oauth2/server/token/password.rb +1 -1
- data/lib/rack/oauth2/server/token/refresh_token.rb +1 -1
- data/lib/rack/oauth2/server/token/saml2_bearer.rb +1 -1
- data/spec/rack/oauth2/client/error_spec.rb +1 -1
- 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: ec6f0bedd0aa554054e352cc7744ffeb8307c85a
|
4
|
+
data.tar.gz: 622e2e5431e43e8ccdf6c5c9a9195ed8973e0dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10d2202a012472eb86e342177748dacbdd84e9a691b74566b55f4e1de8d39bc4b753d017833948825d82d6488fa7040546750de849b632410a742c266faf0988
|
7
|
+
data.tar.gz: 9d88f10022b6b94227e4a6ca3ce7a1b422cd0437d9a55c83f5b14435694909b84e3bd0ffd2f6dd61de93b83642d4cac99e3de6050f6f8ed48948199e176c5cb2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.6.0
|
@@ -10,6 +10,14 @@ module Rack
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def call(env)
|
13
|
+
# NOTE:
|
14
|
+
# Rack middleware is initialized only on the first request of the process.
|
15
|
+
# So any instance variables are acts like class variables, and modifying them in call() isn't thread-safe.
|
16
|
+
# ref.) http://stackoverflow.com/questions/23028226/rack-middleware-and-thread-safety
|
17
|
+
dup._call(env)
|
18
|
+
end
|
19
|
+
|
20
|
+
def _call(env)
|
13
21
|
@authenticator.call(@request, @response) if @authenticator
|
14
22
|
@response
|
15
23
|
end
|
@@ -13,6 +13,6 @@ describe Rack::OAuth2::Client::Error do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
its(:status) { should == 400 }
|
16
|
-
its(:message) { should == error[:error_description] }
|
16
|
+
its(:message) { should == [error[:error], error[:error_description]].join(' :: ') }
|
17
17
|
its(:response) { should == error }
|
18
18
|
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.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|