New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

saml20-maintained

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saml20-maintained - npm Package Compare versions

Comparing version 0.1.17 to 0.1.18

.travis.yml

4

lib/validateSignature.js

@@ -5,7 +5,7 @@ 'use strict';

var SignedXml = require('xml-crypto').SignedXml;
var dom = require('xmldom').DOMParser;
var Dom = require('xmldom').DOMParser;
var thumbprint = require('thumbprint');
module.exports = function validateSignature(xml, cert, certThumbprint) {
var doc = new dom().parseFromString(xml);
var doc = new Dom().parseFromString(xml);
var signature = select(doc, '/*/*/*[local-name(.)=\'Signature\' and namespace-uri(.)=\'http://www.w3.org/2000/09/xmldsig#\']')[0]

@@ -12,0 +12,0 @@ || select(doc, '/*/*[local-name(.)=\'Signature\' and namespace-uri(.)=\'http://www.w3.org/2000/09/xmldsig#\']')[0];

{
"name": "saml20-maintained",
"version": "0.1.17",
"version": "0.1.18",
"description": "SAML 2.0 and 1.1 token parser for Node.js",
"main": "./lib/index.js",
"dependencies": {
"lodash": "4.17.11",
"thumbprint": "0.0.1",
"xml-crypto": "0.8.1",
"xml2js": "0.4.4",
"xmldom": "0.1.19"
"lodash": "^4.17.11",
"thumbprint": "^0.0.1",
"xml-crypto": "^0.8.1",
"xml2js": "^0.4.4",
"xmldom": "^0.1.19"
},

@@ -26,4 +26,4 @@ "repository": {

},
"author": "Leandro Boffi (me@leandrob.com)",
"contributors":[
"author": "Leandro Boffi (me@leandrob.com)",
"contributors": [
{

@@ -37,5 +37,5 @@ "name": "Phillip Son",

"devDependencies": {
"jshint": "2.8.0",
"mocha": "2.3.3"
"jshint": "2.10.2",
"mocha": "6.1.4"
}
}

@@ -1,2 +0,2 @@

SAML 2.0 & 1.1 Assertion Parser & Validator
SAML 2.0 & 1.1 Assertion Parser & Validator [![Build Status](https://travis-ci.com/phylp/saml20-maintained.svg?branch=master)](https://travis-ci.com/phylp/saml20-maintained)
=============

@@ -3,0 +3,0 @@ saml20-maintained is a fork of saml20. It is the same library with updated versions of vulnerable dependencies.

@@ -17,3 +17,3 @@ var assert = require("assert");

it("Should validate saml 1.1 token using thumbprint", function (done) {
saml.validate(validToken, { thumbprint: thumbprint, bypassExpiration: true }, function(err, profile) {
saml.validate(validToken, {publicKey: certificate, thumbprint: thumbprint, bypassExpiration: true }, function(err, profile) {
assert.ifError(err);

@@ -20,0 +20,0 @@ assert.equal(issuerName, profile.issuer);

var assert = require("assert");
var fs = require("fs");
var saml = require("../lib/index.js");
var fs = require("fs");

@@ -17,3 +17,3 @@ // Tests Configuration

it("Should validate saml 2.0 token using thumbprint", function (done) {
saml.validate(validToken, { thumbprint: thumbprint, bypassExpiration: true }, function(err, profile) {
saml.validate(validToken, {publicKey: certificate, thumbprint: thumbprint, bypassExpiration: true }, function(err, profile) {
assert.ifError(err);

@@ -20,0 +20,0 @@ assert.ok(profile.claims);

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