From 73d232c8c12f55db52514463832d4356f8d80666 Mon Sep 17 00:00:00 2001 From: Chad Killingsworth Date: Tue, 6 Mar 2018 18:58:01 -0600 Subject: [PATCH] Add a keyInfoProvider option to support use of the element instead of embedding an certificate --- lib/saml20.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/saml20.js b/lib/saml20.js index 21c1f278..e79b6e94 100644 --- a/lib/saml20.js +++ b/lib/saml20.js @@ -81,7 +81,7 @@ exports.create = function(options, callback) { sig.signingKey = options.key; - sig.keyInfoProvider = { + sig.keyInfoProvider = options.keyInfoProvider || { getKeyInfo: function (key, prefix) { prefix = prefix ? prefix + ':' : prefix; return "<" + prefix + "X509Data><" + prefix + "X509Certificate>" + cert + "";