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

saml2-js

Package Overview
Dependencies
Maintainers
4
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.0.1 to 1.0.2

test/data/empty_attribute_value.xml

8

lib-js/saml2.js

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

parse_assertion_attributes = function(dom) {
var assertion, assertion_attributes, attr, attribute, attribute_name, attribute_statement, _i, _j, _len, _len1, _ref, _ref1;
var assertion, assertion_attributes, attr, attribute, attribute_name, attribute_statement, attribute_values, _i, _j, _len, _len1, _ref, _ref1;
assertion = dom.getElementsByTagNameNS(XMLNS.SAML, 'Assertion');

@@ -432,4 +432,6 @@ if (assertion.length !== 1) {

}
assertion_attributes[attribute_name] = _(attribute.getElementsByTagNameNS(XMLNS.SAML, 'AttributeValue')).map(function(attribute_value) {
return attribute_value.childNodes[0].data;
attribute_values = attribute.getElementsByTagNameNS(XMLNS.SAML, 'AttributeValue');
assertion_attributes[attribute_name] = _(attribute_values).map(function(attribute_value) {
var _ref2;
return ((_ref2 = attribute_value.childNodes[0]) != null ? _ref2.data : void 0) || '';
});

@@ -436,0 +438,0 @@ }

{
"name": "saml2-js",
"version": "1.0.1",
"version": "1.0.2",
"description": "SAML 2.0 node helpers",

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

@@ -237,2 +237,3 @@ # SAML2-js

app.get("/metadata.xml", function(req, res) {
res.type('application/xml');
res.send(sp.create_metadata());

@@ -239,0 +240,0 @@ });

Sorry, the diff of this file is not supported yet

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