From 938869be757753b5a45b6e40e26dd52dd4ea4f4c Mon Sep 17 00:00:00 2001 From: Idris Mokhtarzada Date: Thu, 26 Jan 2017 17:26:39 -0800 Subject: [PATCH] Use issuer._ if it exists --- lib/passport-saml/saml.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/passport-saml/saml.js b/lib/passport-saml/saml.js index 2ef65955..74b719f0 100644 --- a/lib/passport-saml/saml.js +++ b/lib/passport-saml/saml.js @@ -662,7 +662,7 @@ SAML.prototype.processValidlySignedAssertion = function(xml, inResponseTo, callb var issuer = assertion.Issuer; if (issuer) { - profile.issuer = issuer[0]; + profile.issuer = issuer[0]._ || issuer[0]; } var authnStatement = assertion.AuthnStatement; @@ -859,7 +859,7 @@ function processValidlySignedPostRequest(self, doc, callback) { } var issuer = request.Issuer; if (issuer) { - profile.issuer = issuer[0]; + profile.issuer = issuer[0]._ || issuer[0]; } else { return callback(new Error('Missing SAML issuer')); }