Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

saml

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saml - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

1

lib/saml20.js

@@ -153,2 +153,3 @@

if (err) return callback(err);
encrypted = '<saml:EncryptedAssertion>' + encrypted + '</saml:EncryptedAssertion>';
callback(null, utils.removeWhitespace(encrypted));

@@ -155,0 +156,0 @@ });

2

package.json
{
"name": "saml",
"version": "0.8.1",
"version": "0.8.2",
"devDependencies": {

@@ -5,0 +5,0 @@ "mocha": "*",

@@ -147,4 +147,6 @@ var assert = require('assert'),

if (err) return done(err);
var encryptedData = utils.getEncryptedData(encrypted);
xmlenc.decrypt(encrypted, { key: fs.readFileSync(__dirname + '/test-auth0.key')}, function(err, decrypted) {
xmlenc.decrypt(encryptedData.toString(), { key: fs.readFileSync(__dirname + '/test-auth0.key')}, function(err, decrypted) {
if (err) return done(err);

@@ -174,4 +176,6 @@ var isValid = utils.isValidSignature(decrypted, options.cert);

if (err) return done(err);
var encryptedData = utils.getEncryptedData(encrypted);
xmlenc.decrypt(encrypted, { key: fs.readFileSync(__dirname + '/test-auth0.key')}, function(err, decrypted) {
xmlenc.decrypt(encryptedData.toString(), { key: fs.readFileSync(__dirname + '/test-auth0.key')}, function(err, decrypted) {
if (err) return done(err);

@@ -178,0 +182,0 @@

@@ -93,1 +93,7 @@ var xmlCrypto = require('xml-crypto'),

};
exports.getEncryptedData = function(encryptedAssertion) {
var doc = new xmldom.DOMParser().parseFromString(encryptedAssertion);
return doc.documentElement
.getElementsByTagName('xenc:EncryptedData')[0];
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc