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.4.2 to 1.4.3

57

lib-js/saml2.js

@@ -94,6 +94,7 @@ // Generated by CoffeeScript 1.7.1

signing_cert_descriptors = (function() {
var _i, _len, _results;
var _i, _len, _ref, _results;
_ref = signing_certificates || [];
_results = [];
for (_i = 0, _len = signing_certificates.length; _i < _len; _i++) {
signing_certificate = signing_certificates[_i];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
signing_certificate = _ref[_i];
_results.push({

@@ -106,6 +107,7 @@ 'md:KeyDescriptor': certificate_to_keyinfo('signing', signing_certificate)

encryption_cert_descriptors = (function() {
var _i, _len, _results;
var _i, _len, _ref, _results;
_ref = encryption_certificates || [];
_results = [];
for (_i = 0, _len = encryption_certificates.length; _i < _len; _i++) {
encryption_certificate = encryption_certificates[_i];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
encryption_certificate = _ref[_i];
_results.push({

@@ -297,10 +299,10 @@ 'md:KeyDescriptor': certificate_to_keyinfo('encryption', encryption_certificate)

}
_ref = status[0].childNodes;
_ref = status[0].childNodes || [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
status_code = _ref[_i];
if (status_code.attributes != null) {
_ref1 = status_code.attributes;
_ref1 = status_code.attributes || [];
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
attr = _ref1[_j];
if (attr.name === 'Value' && attr.value === 'urn:oasis:names:tc:SAML:2.0:status:Success') {
if ((attr != null ? attr.name : void 0) === 'Value' && (attr != null ? attr.value : void 0) === 'urn:oasis:names:tc:SAML:2.0:status:Success') {
return true;

@@ -321,10 +323,10 @@ }

}
_ref = status[0].childNodes;
_ref = status[0].childNodes || [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
status_code = _ref[_i];
if (status_code.attributes != null) {
_ref1 = status_code.attributes;
_ref1 = (status_code != null ? status_code.attributes : void 0) || [];
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
attr = _ref1[_j];
if (attr.name === 'Value') {
if ((attr != null ? attr.name : void 0) === 'Value') {
top_status = attr.value;

@@ -337,11 +339,11 @@ if (status_list[top_status] == null) {

}
_ref2 = status_code.childNodes;
_ref2 = status_code.childNodes || [];
for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {
sub_status_code = _ref2[_k];
if (sub_status_code.attributes != null) {
_ref3 = sub_status_code.attributes;
if ((sub_status_code != null ? sub_status_code.attributes : void 0) != null) {
_ref3 = sub_status_code.attributes || [];
for (_l = 0, _len3 = _ref3.length; _l < _len3; _l++) {
attr = _ref3[_l];
if (attr.name === 'Value') {
status_list[top_status].push(attr.value);
if ((attr != null ? attr.name : void 0) === 'Value') {
status_list[top_status].push(attr != null ? attr.value : void 0);
}

@@ -421,6 +423,6 @@ }

response_header = {};
_ref1 = response[0].attributes;
_ref1 = response[0].attributes || [];
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
attr = _ref1[_j];
switch (attr.name) {
switch (attr != null ? attr.name : void 0) {
case "Version":

@@ -471,6 +473,6 @@ if (attr.value !== "2.0") {

}
_ref = authn_statement[0].attributes;
_ref = authn_statement[0].attributes || [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
attr = _ref[_i];
if (attr.name === 'SessionIndex') {
if ((attr != null ? attr.name : void 0) === 'SessionIndex') {
return attr.value;

@@ -499,7 +501,7 @@ }

attribute = _ref[_i];
_ref1 = attribute.attributes;
_ref1 = (attribute != null ? attribute.attributes : void 0) || [];
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
attr = _ref1[_j];
if (attr.name === 'Name') {
attribute_name = attr.value;
if ((attr != null ? attr.name : void 0) === 'Name') {
attribute_name = attr != null ? attr.value : void 0;
}

@@ -572,3 +574,3 @@ }

}, function(result, cb_wf) {
var assertion, cert, sd, signed_data, signed_dom, _i, _j, _len, _len1;
var assertion, cert, sd, signed_data, signed_dom, _i, _j, _len, _len1, _ref;
debug(result);

@@ -578,4 +580,5 @@ if (ignore_signature) {

}
for (_i = 0, _len = idp_certificates.length; _i < _len; _i++) {
cert = idp_certificates[_i];
_ref = idp_certificates || [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
cert = _ref[_i];
signed_data = check_saml_signature(result, cert);

@@ -582,0 +585,0 @@ if (!signed_data) {

{
"name": "saml2-js",
"version": "1.4.2",
"version": "1.4.3",
"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