Update saml_utils.js

Removed useless private key
This commit is contained in:
gerbsen 2018-07-12 20:39:01 +02:00 committed by GitHub
parent 60e8a55b6c
commit 290e5695bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -377,7 +377,7 @@ SAML.prototype.validateResponse = function(samlResponse, relayState, callback) {
const encAssertion = response.getElementsByTagNameNS('urn:oasis:names:tc:SAML:2.0:assertion', 'EncryptedAssertion')[0];
var xmlenc = Npm.require('xml-encryption');
var options = { key: this.options.privateKey, };
var options = { key: this.options.privateKey };
if (typeof encAssertion !== 'undefined') {
xmlenc.decrypt(encAssertion.getElementsByTagNameNS('*', 'EncryptedData')[0], options, function(err, result) {