From 929ff221908ae32d68abd7b9513472cef603c43d Mon Sep 17 00:00:00 2001 From: Bradley Hilton Date: Mon, 16 Apr 2018 23:28:45 -0500 Subject: [PATCH] Fix even more saml type errors (extension of #10084 and #9775) --- packages/meteor-accounts-saml/saml_utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/meteor-accounts-saml/saml_utils.js b/packages/meteor-accounts-saml/saml_utils.js index 30eec18b57ba1..75bf93fb8d2eb 100644 --- a/packages/meteor-accounts-saml/saml_utils.js +++ b/packages/meteor-accounts-saml/saml_utils.js @@ -396,9 +396,9 @@ SAML.prototype.validateResponse = function(samlResponse, relayState, callback) { attributes.forEach(function(attribute) { const value = self.getElement(attribute, 'AttributeValue'); if (typeof value[0] === 'string') { - profile[attribute.$.Name] = value[0]; + profile[attribute.$.Name.value] = value[0]; } else { - profile[attribute.$.Name] = value[0]._; + profile[attribute.$.Name.value] = value[0]._; } }); }