libsaml 2.19.8 → 2.19.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saml/version.rb +1 -1
- data/lib/saml/xml_helpers.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec8329f0054303133b79486dbde40b6468adae9f
|
4
|
+
data.tar.gz: 76672a327b1c26136b92ebcdf71cf56b3daa47b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 384bdc61d79252931ccf7630d951728a6c41b10bc8654a3039693f8f789e95c4418fbbd2dd65f960ca1f872b1dbb96be984929ccfaaef54a2270e97dc853df6f
|
7
|
+
data.tar.gz: f4ebee2651222d3951bc58dd39fb268684525815f8fd6f7e79e076fa67962f3caf3fec842c30dfae3decae008bf771792cf2c451aebc5ff69181b2d3bddf3aa6
|
data/lib/saml/version.rb
CHANGED
data/lib/saml/xml_helpers.rb
CHANGED
@@ -39,13 +39,13 @@ module Saml
|
|
39
39
|
xml.parent.namespace = xml.parent.namespace_definitions.find { |n| n.prefix == 'soapenv' }
|
40
40
|
|
41
41
|
if header_options = options[:header]
|
42
|
-
xml.Header do |xml|
|
43
|
-
xml.MessageID(header_options[:wsa_message_id].presence || "uuid:#{SecureRandom.uuid}")
|
44
|
-
xml.Action(header_options[:wsa_action])
|
45
|
-
xml.To(header_options[:wsa_to]) if header_options[:wsa_to]
|
42
|
+
xml.Header('xmlns:wsa' => 'http://schemas.xmlsoap.org/ws/2004/08/addressing') do |xml|
|
43
|
+
xml['wsa'].MessageID(header_options[:wsa_message_id].presence || "uuid:#{SecureRandom.uuid}")
|
44
|
+
xml['wsa'].Action(header_options[:wsa_action])
|
45
|
+
xml['wsa'].To(header_options[:wsa_to]) if header_options[:wsa_to]
|
46
46
|
if header_options[:wsa_address]
|
47
|
-
xml.ReplyTo do |xml|
|
48
|
-
xml.Address(header_options[:wsa_address])
|
47
|
+
xml['wsa'].ReplyTo do |xml|
|
48
|
+
xml['wsa'].Address(header_options[:wsa_address])
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|