rack-oauth2 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -4
- data/VERSION +1 -1
- data/lib/rack/oauth2/server/abstract/request.rb +2 -3
- data/lib/rack/oauth2/server/resource.rb +1 -1
- data/spec/helpers/time.rb +8 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5e9c0b93779b062c4cd588a9b79f7d0f6b6bfae
|
4
|
+
data.tar.gz: b586a6ee419b7c46406029c0a3c683c95a919411
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3378c4bc5f9bfafae6d12216d44fcc97fd6b474b188a68bc50bec298d9cc19ca680b1e5eac80b5e7297f9f2d13567572b7a67f0c1e904a39c4bac26f17bd34c6
|
7
|
+
data.tar.gz: fc93246b58a617d21fb0d1ea2c0b95af705aa6305408e83808c80c68dddb6783487f4cf47b6a5d58ff514d706a41bce8847493715b9cb3b271f8a4d3d7e8b223
|
data/.travis.yml
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.2
|
@@ -13,15 +13,14 @@ module Rack
|
|
13
13
|
@scope = Array(params['scope'].to_s.split(' '))
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
16
|
+
def attr_missing!
|
17
17
|
if params['client_id'].present? && @client_id != params['client_id']
|
18
18
|
invalid_request! 'Multiple client credentials are provided.'
|
19
19
|
end
|
20
|
-
|
20
|
+
super
|
21
21
|
rescue AttrRequired::AttrMissing => e
|
22
22
|
invalid_request! e.message, state: @state, redirect_uri: @redirect_uri
|
23
23
|
end
|
24
|
-
alias_method_chain :attr_missing!, :error_handling
|
25
24
|
end
|
26
25
|
end
|
27
26
|
end
|
data/spec/helpers/time.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
class Time
|
2
2
|
class << self
|
3
|
-
|
4
|
-
|
5
|
-
@fixed_time
|
6
|
-
|
7
|
-
|
3
|
+
module NowWithFixedTime
|
4
|
+
def now
|
5
|
+
if @fixed_time
|
6
|
+
@fixed_time.dup
|
7
|
+
else
|
8
|
+
super
|
9
|
+
end
|
8
10
|
end
|
9
11
|
end
|
10
|
-
|
12
|
+
prepend NowWithFixedTime
|
11
13
|
|
12
14
|
def fix(time = Time.now)
|
13
15
|
@fixed_time = time
|
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.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -283,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
283
|
version: 1.3.6
|
284
284
|
requirements: []
|
285
285
|
rubyforge_project:
|
286
|
-
rubygems_version: 2.
|
286
|
+
rubygems_version: 2.5.1
|
287
287
|
signing_key:
|
288
288
|
specification_version: 4
|
289
289
|
summary: OAuth 2.0 Server & Client Library - Both Bearer and MAC token type are supported
|