saml2 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/saml2/attribute_consuming_service.rb +1 -1
- data/lib/saml2/message.rb +5 -1
- data/lib/saml2/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a1723deaff84f2dbee4d80462c2494ad57b92a0df924fc3b42438fd26da9ddc
|
4
|
+
data.tar.gz: a3393003af83c6fd1e173d7e51d8295155e4da8091f6f84c09753b4266a1511c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc558dccc2198fc90c08d0f7a0b0ff004552170fd0d9dd71a93cc79062f6dcbc0b0835940ce8fff457614d3d20a86ebe757ebf7e4f9dcc2a834693def5c81c7d
|
7
|
+
data.tar.gz: 5222ab6f088ca137807a7869eb8e112575d5f164c7e72a55cee951220d2d1c81cf86e02d505cf70baeb4d94cbfad18d0ce31eddb052d659071fb596ccbf89485
|
@@ -131,7 +131,6 @@ module SAML2
|
|
131
131
|
|
132
132
|
attributes_hash = {}
|
133
133
|
attributes.each do |attr|
|
134
|
-
attr.value = attr.value.call if attr.value.respond_to?(:call)
|
135
134
|
attributes_hash[[attr.name, attr.name_format]] = attr
|
136
135
|
attributes_hash[[attr.name, nil]] = attr if attr.name_format
|
137
136
|
end
|
@@ -141,6 +140,7 @@ module SAML2
|
|
141
140
|
attr = attributes_hash[[requested_attr.name, requested_attr.name_format]]
|
142
141
|
attr ||= attributes_hash[[requested_attr.name, nil]] if requested_attr.name_format
|
143
142
|
if attr
|
143
|
+
attr.value = attr.value.call if attr.value.respond_to?(:call)
|
144
144
|
if requested_attr.value &&
|
145
145
|
!Array.wrap(requested_attr.value).include?(attr.value)
|
146
146
|
raise InvalidAttributeValue.new(requested_attr, attr.value)
|
data/lib/saml2/message.rb
CHANGED
@@ -156,7 +156,11 @@ module SAML2
|
|
156
156
|
|
157
157
|
# @return [NameID, nil]
|
158
158
|
def issuer
|
159
|
-
|
159
|
+
if xml && !instance_variable_defined?(:@issuer)
|
160
|
+
@issuer = NameID.from_xml(xml.at_xpath("saml:Issuer",
|
161
|
+
Namespaces::ALL))
|
162
|
+
end
|
163
|
+
@issuer
|
160
164
|
end
|
161
165
|
|
162
166
|
protected
|
data/lib/saml2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saml2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-
|
10
|
+
date: 2025-05-30 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activesupport
|
@@ -145,7 +144,6 @@ licenses:
|
|
145
144
|
- MIT
|
146
145
|
metadata:
|
147
146
|
rubygems_mfa_required: 'true'
|
148
|
-
post_install_message:
|
149
147
|
rdoc_options: []
|
150
148
|
require_paths:
|
151
149
|
- lib
|
@@ -160,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
158
|
- !ruby/object:Gem::Version
|
161
159
|
version: '0'
|
162
160
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
164
|
-
signing_key:
|
161
|
+
rubygems_version: 3.6.2
|
165
162
|
specification_version: 4
|
166
163
|
summary: SAML 2.0 Library
|
167
164
|
test_files: []
|