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 +4 -4
- data/VERSION +1 -1
- data/lib/openid_connect.rb +1 -1
- data/lib/openid_connect/client/registrar.rb +4 -4
- data/lib/openid_connect/discovery/provider/config/response.rb +6 -6
- data/lib/openid_connect/request_object.rb +2 -0
- data/lib/openid_connect/response_object/user_info.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9df340e250fc573e0e6d35fea8f1b8e05da3cc24bc52b451106c80f3658af158
|
4
|
+
data.tar.gz: 5ceb6754cf1d7242b1e66048adc00a4d227e7ee5d2573836988e48820b2ea651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 875733e0833a1a5c5edea88891025ab142cc5dc9af07d1bd56f6a5b543227de69d358e0774b6f268883571d72e03ad1d5c3e7b26fade37dc6acd64ee2248d0c2
|
7
|
+
data.tar.gz: d5c5092d6698e6baef8131a9bd7186b537886e8d9267bde94fd7afbc19a3203fe69133a3008d94a4b2f63f52e7a48b17bcc415179fad326e225a07335d60ef7d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.8
|
data/lib/openid_connect.rb
CHANGED
@@ -50,12 +50,12 @@ module OpenIDConnect
|
|
50
50
|
]
|
51
51
|
attr_required :endpoint
|
52
52
|
attr_optional :initial_access_token
|
53
|
-
attr_required
|
54
|
-
attr_optional
|
53
|
+
attr_required(*required_metadata_attributes)
|
54
|
+
attr_optional(*(metadata_attributes - required_metadata_attributes))
|
55
55
|
|
56
|
-
validates
|
56
|
+
validates(*required_attributes, presence: true)
|
57
57
|
validates :sector_identifier_uri, presence: {if: :sector_identifier_required?}
|
58
|
-
validates
|
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
|
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
|
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
|
60
|
-
validates
|
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
|
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.
|
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-
|
11
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzinfo
|