Commit 68da1526 authored by Thibaut Lambert's avatar Thibaut Lambert
Browse files

Ignore attribute with no attributeValue child in response's AttributeStatement...

Ignore attribute with no attributeValue child in response's AttributeStatement (childless attribute was causing typeError)
parent a1567585
......@@ -671,6 +671,10 @@ SAML.prototype.processValidlySignedAssertion = function(xml, inResponseTo, callb
if (attributes) {
attributes.forEach(function (attribute) {
if(!attribute.hasOwnProperty('AttributeValue')) {
// if attributes has no AttributeValue child, continue
return;
}
var value = attribute.AttributeValue;
if (value.length === 1) {
profile[attribute.$.Name] = attrValueMapper(value[0]);
......
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