openid_connect 1.1.7 → 1.1.8

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: a6f9c83ea35487cc608778feb29d7434b3ee8f3a325115d39da07a82eec2ea17
4
- data.tar.gz: 99f58be9da8de7a35cb2ffafb5bb4b83edaac82cbf353f0ace0f8203e3da27cf
3
+ metadata.gz: 9df340e250fc573e0e6d35fea8f1b8e05da3cc24bc52b451106c80f3658af158
4
+ data.tar.gz: 5ceb6754cf1d7242b1e66048adc00a4d227e7ee5d2573836988e48820b2ea651
5
5
  SHA512:
6
- metadata.gz: 9870720636c14274ea8d96b35022a05faa82bf1c767d8f8a6f52e648adc174f23eaaf58f525d31d8e12801b04ba1b43b452c3680ed996e89d49c601601071f9d
7
- data.tar.gz: 322bf5c9b6ba9d094b1f8363cf0fffbb01d29ea0288abe96a66c98262abcc83c906075f96821ecc245c378c1ac8b154e73925e0ff996287e152f836850a03958
6
+ metadata.gz: 875733e0833a1a5c5edea88891025ab142cc5dc9af07d1bd56f6a5b543227de69d358e0774b6f268883571d72e03ad1d5c3e7b26fade37dc6acd64ee2248d0c2
7
+ data.tar.gz: d5c5092d6698e6baef8131a9bd7186b537886e8d9267bde94fd7afbc19a3203fe69133a3008d94a4b2f63f52e7a48b17bcc415179fad326e225a07335d60ef7d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.7
1
+ 1.1.8
@@ -73,7 +73,7 @@ module OpenIDConnect
73
73
  end
74
74
  def self.http_config(&block)
75
75
  @sub_protocols.each do |klass|
76
- klass.http_config &block unless klass.http_config
76
+ klass.http_config(&block) unless klass.http_config
77
77
  end
78
78
  @@http_config ||= block
79
79
  end
@@ -50,12 +50,12 @@ module OpenIDConnect
50
50
  ]
51
51
  attr_required :endpoint
52
52
  attr_optional :initial_access_token
53
- attr_required *required_metadata_attributes
54
- attr_optional *(metadata_attributes - required_metadata_attributes)
53
+ attr_required(*required_metadata_attributes)
54
+ attr_optional(*(metadata_attributes - required_metadata_attributes))
55
55
 
56
- validates *required_attributes, presence: true
56
+ validates(*required_attributes, presence: true)
57
57
  validates :sector_identifier_uri, presence: {if: :sector_identifier_required?}
58
- validates *singular_uri_attributes, url: true, allow_nil: true
58
+ validates(*singular_uri_attributes, url: true, allow_nil: true)
59
59
  validate :validate_plural_uri_attributes
60
60
  validate :validate_contacts
61
61
 
@@ -25,12 +25,12 @@ module OpenIDConnect
25
25
  :op_tos_uri
26
26
  ]
27
27
  }
28
- attr_required *(uri_attributes[:required] + [
28
+ attr_required(*(uri_attributes[:required] + [
29
29
  :response_types_supported,
30
30
  :subject_types_supported,
31
31
  :id_token_signing_alg_values_supported
32
- ])
33
- attr_optional *(uri_attributes[:optional] + [
32
+ ]))
33
+ attr_optional(*(uri_attributes[:optional] + [
34
34
  :scopes_supported,
35
35
  :response_modes_supported,
36
36
  :grant_types_supported,
@@ -54,10 +54,10 @@ module OpenIDConnect
54
54
  :request_parameter_supported,
55
55
  :request_uri_parameter_supported,
56
56
  :require_request_uri_registration
57
- ])
57
+ ]))
58
58
 
59
- validates *required_attributes, presence: true
60
- validates *uri_attributes.values.flatten, url: true, allow_nil: true
59
+ validates(*required_attributes, presence: true)
60
+ validates(*uri_attributes.values.flatten, url: true, allow_nil: true)
61
61
  validates :issuer, with: :validate_issuer_matching
62
62
 
63
63
  def initialize(hash)
@@ -5,10 +5,12 @@ module OpenIDConnect
5
5
  attr_optional :client_id, :response_type, :redirect_uri, :scope, :state, :nonce, :display, :prompt, :userinfo, :id_token
6
6
  validate :require_at_least_one_attributes
7
7
 
8
+ undef :id_token=
8
9
  def id_token=(attributes = {})
9
10
  @id_token = IdToken.new(attributes) if attributes.present?
10
11
  end
11
12
 
13
+ undef :userinfo=
12
14
  def userinfo=(attributes = {})
13
15
  @userinfo = UserInfo.new(attributes) if attributes.present?
14
16
  end
@@ -47,6 +47,7 @@ module OpenIDConnect
47
47
  errors.add :address, address.errors.full_messages.join(', ') if address.present? && !address.valid?
48
48
  end
49
49
 
50
+ undef :address=
50
51
  def address=(hash_or_address)
51
52
  @address = case hash_or_address
52
53
  when Hash
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openid_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-06 00:00:00.000000000 Z
11
+ date: 2019-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo