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.5.1 to 1.6.0

16

lib-js/saml2.js

@@ -143,7 +143,9 @@ // Generated by CoffeeScript 1.7.1

create_logout_request = function(issuer, name_id, session_index, destination) {
return xmlbuilder.create({
var id, xml;
id = '_' + crypto.randomBytes(21).toString('hex');
xml = xmlbuilder.create({
'samlp:LogoutRequest': {
'@xmlns:samlp': XMLNS.SAMLP,
'@xmlns:saml': XMLNS.SAML,
'@ID': '_' + crypto.randomBytes(21).toString('hex'),
'@ID': id,
'@Version': '2.0',

@@ -157,2 +159,6 @@ '@IssueInstant': (new Date()).toISOString(),

}).end();
return {
id: id,
xml: xml
};
};

@@ -751,3 +757,3 @@

ServiceProvider.prototype.create_logout_request_url = function(identity_provider, options, cb) {
var xml;
var id, xml, _ref;
if (_.isString(identity_provider)) {

@@ -760,3 +766,3 @@ identity_provider = {

options = set_option_defaults(options, identity_provider.shared_options, this.shared_options);
xml = create_logout_request(this.entity_id, options.name_id, options.session_index, identity_provider.sso_logout_url);
_ref = create_logout_request(this.entity_id, options.name_id, options.session_index, identity_provider.sso_logout_url), id = _ref.id, xml = _ref.xml;
return zlib.deflateRaw(xml, (function(_this) {

@@ -783,3 +789,3 @@ return function(err, deflated) {

uri.query = query;
return cb(null, url.format(uri));
return cb(null, url.format(uri), id);
};

@@ -786,0 +792,0 @@ })(this));

{
"name": "saml2-js",
"version": "1.5.1",
"version": "1.6.0",
"description": "SAML 2.0 node helpers",

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

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