rack-oauth2 1.9.3 → 1.10.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/access_token.rb +6 -3
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff1ae73d381dc1f53b17a12e9a9d84a5f5605d498a0b09332bf18f2417f7d9cd
|
4
|
+
data.tar.gz: 1a20fd5caf7ad0c5bdd1ffbcf66aeae65235c3a8de3bb9597bac528f45ca218d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f4c6302fac9892b2ac53315f28496ff2448003b06c94e243fb68b66ba93d108dbe7ab842f9e2b0e2e21816586e26e2ffebce4f76a0a209b2d75b5a3ee5baf27
|
7
|
+
data.tar.gz: 2406ddd10061e05757e413379f014721cd9bb485a4a794b4d7acf90d0b188f6f749fe0363a0ddfafb478e26feafbd9a80ad09c23557583b0771458a9e92996a3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.10.0
|
@@ -2,7 +2,7 @@ module Rack
|
|
2
2
|
module OAuth2
|
3
3
|
class AccessToken
|
4
4
|
include AttrRequired, AttrOptional
|
5
|
-
attr_required :access_token, :token_type
|
5
|
+
attr_required :access_token, :token_type
|
6
6
|
attr_optional :refresh_token, :expires_in, :scope
|
7
7
|
attr_accessor :raw_attributes
|
8
8
|
delegate :get, :patch, :post, :put, :delete, to: :httpclient
|
@@ -15,10 +15,13 @@ module Rack
|
|
15
15
|
end
|
16
16
|
@raw_attributes = attributes
|
17
17
|
@token_type = self.class.name.demodulize.underscore.to_sym
|
18
|
-
|
18
|
+
attr_missing!
|
19
|
+
end
|
20
|
+
|
21
|
+
def httpclient
|
22
|
+
@httpclient ||= Rack::OAuth2.http_client("#{self.class} (#{VERSION})") do |config|
|
19
23
|
config.request_filter << Authenticator.new(self)
|
20
24
|
end
|
21
|
-
attr_missing!
|
22
25
|
end
|
23
26
|
|
24
27
|
def token_response(options = {})
|
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.10.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:
|
11
|
+
date: 2019-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -301,8 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
301
301
|
- !ruby/object:Gem::Version
|
302
302
|
version: '0'
|
303
303
|
requirements: []
|
304
|
-
|
305
|
-
rubygems_version: 2.7.6
|
304
|
+
rubygems_version: 3.0.3
|
306
305
|
signing_key:
|
307
306
|
specification_version: 4
|
308
307
|
summary: OAuth 2.0 Server & Client Library - Both Bearer and MAC token type are supported
|