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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 547320a1fd9f9814f0ab3e8b9ffca9ed63c9eb97cdd540a6782ad65b1904d27e
4
- data.tar.gz: f691811b07ea68a741509de51076275f83169009cf3723fbde91718f8bcfb4ea
3
+ metadata.gz: ff1ae73d381dc1f53b17a12e9a9d84a5f5605d498a0b09332bf18f2417f7d9cd
4
+ data.tar.gz: 1a20fd5caf7ad0c5bdd1ffbcf66aeae65235c3a8de3bb9597bac528f45ca218d
5
5
  SHA512:
6
- metadata.gz: f5f2c5d853d8f17d04b7020fd0fa72edf43470eab5bb532ecb05a238956755dcafb32051629e77f9f451e38bf73a4f171e8b20d4c4f606b33b3523923d733cfc
7
- data.tar.gz: 9a3f31dc3696817c801441267b50b6839e91588a30d7e838987356ffba4595a75a4b165e5ba5f05f43aabe4848a3550330f3bf19895ca2d0338372f914d150a9
6
+ metadata.gz: 3f4c6302fac9892b2ac53315f28496ff2448003b06c94e243fb68b66ba93d108dbe7ab842f9e2b0e2e21816586e26e2ffebce4f76a0a209b2d75b5a3ee5baf27
7
+ data.tar.gz: 2406ddd10061e05757e413379f014721cd9bb485a4a794b4d7acf90d0b188f6f749fe0363a0ddfafb478e26feafbd9a80ad09c23557583b0771458a9e92996a3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.9.3
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, :httpclient
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
- @httpclient = Rack::OAuth2.http_client("#{self.class} (#{VERSION})") do |config|
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.9.3
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: 2018-10-29 00:00:00.000000000 Z
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
- rubyforge_project:
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