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 + "";