From a6e861679a0820cdf661680dad4e5470a38c177d Mon Sep 17 00:00:00 2001 From: Nishant Chaturvedi Date: Fri, 11 Oct 2019 23:06:52 +0530 Subject: [PATCH 1/2] fix #393 adding 'inResponseTo' in the profile --- lib/passport-saml/saml.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/passport-saml/saml.js b/lib/passport-saml/saml.js index 8aa77c65..982f0efc 100644 --- a/lib/passport-saml/saml.js +++ b/lib/passport-saml/saml.js @@ -923,6 +923,10 @@ SAML.prototype.processValidlySignedAssertion = function(xml, samlResponseXml, in profile.issuer = issuer[0]._; } + if(inResponseTo){ + profile.inResponseTo = inResponseTo; + } + var authnStatement = assertion.AuthnStatement; if (authnStatement) { if (authnStatement[0].$ && authnStatement[0].$.SessionIndex) { From 5c2f27ee84d8cbf45e19d36e8c90486189d26610 Mon Sep 17 00:00:00 2001 From: Nishant Chaturvedi Date: Fri, 25 Oct 2019 16:39:49 +0530 Subject: [PATCH 2/2] adjusted whitespaces as per the project's convention --- lib/passport-saml/saml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/passport-saml/saml.js b/lib/passport-saml/saml.js index 982f0efc..2969a16d 100644 --- a/lib/passport-saml/saml.js +++ b/lib/passport-saml/saml.js @@ -923,7 +923,7 @@ SAML.prototype.processValidlySignedAssertion = function(xml, samlResponseXml, in profile.issuer = issuer[0]._; } - if(inResponseTo){ + if (inResponseTo) { profile.inResponseTo = inResponseTo; }