diff --git a/lib/passport-saml/saml.js b/lib/passport-saml/saml.js index 9e7e5d4f..42d4c208 100644 --- a/lib/passport-saml/saml.js +++ b/lib/passport-saml/saml.js @@ -917,13 +917,13 @@ SAML.prototype.generateServiceProviderMetadata = function( decryptionCert ) { } } }, - '#list' : [ + 'EncryptionMethod' : [ // this should be the set that the xmlenc library supports - { 'EncryptionMethod': { '@Algorithm': 'http://www.w3.org/2001/04/xmlenc#aes256-cbc' } }, - { 'EncryptionMethod': { '@Algorithm': 'http://www.w3.org/2001/04/xmlenc#aes128-cbc' } }, - { 'EncryptionMethod': { '@Algorithm': 'http://www.w3.org/2001/04/xmlenc#tripledes-cbc' } }, + { '@Algorithm': 'http://www.w3.org/2001/04/xmlenc#aes256-cbc' }, + { '@Algorithm': 'http://www.w3.org/2001/04/xmlenc#aes128-cbc' }, + { '@Algorithm': 'http://www.w3.org/2001/04/xmlenc#tripledes-cbc' } ] - }; + } } if (this.options.logoutCallbackUrl) { diff --git a/package.json b/package.json index 1d7ef051..b10bb23b 100644 --- a/package.json +++ b/package.json @@ -31,22 +31,22 @@ "main": "./lib/passport-saml", "dependencies": { "passport-strategy": "*", - "q": "1.1.x", + "q": "^1.5.0", + "xml-crypto": "^0.9.0", + "xml-encryption": "~0.10", "xml2js": "0.4.x", - "xml-crypto": "0.8.x", - "xmldom": "0.1.x", - "xmlbuilder": "2.5.x", - "xml-encryption": "~0.10" + "xmlbuilder": "^8.2.2", + "xmldom": "0.1.x" }, "devDependencies": { - "body-parser": "1.9.x", + "body-parser": "^1.17.1", "express": "4.x", "jshint": "*", "mocha": "*", + "passport": "0.3.x", "request": "*", "should": "*", - "sinon": "^1.10.2", - "passport": "0.3.x" + "sinon": "^2.1.0" }, "engines": { "node": ">= 0.8.0"