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

saml2-js

Package Overview
Dependencies
Maintainers
5
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saml2-js - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

8

lib-js/saml2.js

@@ -474,3 +474,3 @@ // Generated by CoffeeScript 1.7.1

parse_authn_response = function(saml_response, sp_private_key, idp_certificates, allow_unencrypted, cb) {
parse_authn_response = function(saml_response, sp_private_key, idp_certificates, allow_unencrypted, ignore_signature, cb) {
var decrypted_assertion, user;

@@ -498,5 +498,5 @@ user = {};

decrypted_assertion = (new xmldom.DOMParser()).parseFromString(result);
if (!_.some(idp_certificates, function(cert) {
if (!(ignore_signature || _.some(idp_certificates, function(cert) {
return check_saml_signature(result, cert);
})) {
}))) {
return cb_wf(new Error("SAML Assertion signature check failed! (checked " + idp_certificates.length + " certificate(s))"));

@@ -634,3 +634,3 @@ }

response.type = 'authn_response';
return parse_authn_response(saml_response, _this.private_key, identity_provider.certificates, options.allow_unencrypted_assertion, cb_wf);
return parse_authn_response(saml_response, _this.private_key, identity_provider.certificates, options.allow_unencrypted_assertion, options.ignore_signature, cb_wf);
case saml_response.getElementsByTagNameNS(XMLNS.SAMLP, 'LogoutResponse').length !== 1:

@@ -637,0 +637,0 @@ if (!check_status_success(saml_response)) {

{
"name": "saml2-js",
"version": "1.1.0",
"version": "1.2.0",
"description": "SAML 2.0 node helpers",

@@ -5,0 +5,0 @@ "author": "Clever",

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