Commit b13b7bab authored by Vartan Simonian's avatar Vartan Simonian
Browse files

Process all attributes in all attribute statements

Formerly, only the first attribute statement would be processed
parent 010f2d43
......@@ -663,7 +663,11 @@ SAML.prototype.processValidlySignedAssertion = function(xml, inResponseTo, callb
var attributeStatement = assertion.AttributeStatement;
if (attributeStatement) {
var attributes = attributeStatement[0].Attribute;
var attributes = [].concat.apply([], attributeStatement.filter(function (attr) {
return Array.isArray(attr.Attribute);
}).map(function (attr) {
return attr.Attribute;
}));
var attrValueMapper = function(value) {
return typeof value === 'string' ? value : value._;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment