libsaml 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saml/assertion.rb +4 -2
- data/lib/saml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17c67b9601317d36394c440a7e7d99a46e717eb5
|
4
|
+
data.tar.gz: 6722ab68b77666bdb39036ac6fed7c6d04fa8be5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a1688bda04cde34e5978a47efe6ad153727b92ec34640d55eb639458513925efbe7ecdb03944cbcb7a77fe0277ccb08ae6fc2d679ff40576e1d536edeae6a54
|
7
|
+
data.tar.gz: 4281d5571b063ab7913038ab413c6f711180eb17f52a2b2718542e786c1e1ff2d832731c659632894dec81499db6e36f98a2aaf5d824b3f7632730f6f17537a0
|
data/lib/saml/assertion.rb
CHANGED
@@ -59,11 +59,13 @@ module Saml
|
|
59
59
|
@provider ||= Saml.provider(issuer)
|
60
60
|
end
|
61
61
|
|
62
|
-
def add_attribute(key, value, value_attributes = {})
|
62
|
+
def add_attribute(key, value, value_attributes = {}, attribute_options = {})
|
63
63
|
self.attribute_statement ||= Saml::Elements::AttributeStatement.new
|
64
64
|
self.attribute_statement.attributes ||= []
|
65
65
|
attribute_value = Saml::Elements::AttributeValue.new(value_attributes.merge(content: value))
|
66
|
-
self.attribute_statement.attributes << Saml::Elements::Attribute.new(
|
66
|
+
self.attribute_statement.attributes << Saml::Elements::Attribute.new(
|
67
|
+
attribute_options.merge(name: key, attribute_value: attribute_value)
|
68
|
+
)
|
67
69
|
end
|
68
70
|
|
69
71
|
def fetch_attribute(key)
|
data/lib/saml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libsaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist Claassen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|