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

saml

Package Overview
Dependencies
Maintainers
56
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saml - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [2.0.1](https://github.com/auth0/node-saml/compare/v2.0.0...v2.0.1) (2022-02-09)
### Bug Fixes
* **saml11:** do not mutate moment() when options.lifetimeInSeconds is provided ([0a5afd1](https://github.com/auth0/node-saml/commit/0a5afd1977dc832f1cc51de6af7c801cc95f78b5))
## [2.0.0](https://github.com/auth0/node-saml/compare/v1.0.1...v2.0.0) (2022-02-04)

@@ -7,0 +14,0 @@

2

lib/saml11.js

@@ -121,3 +121,3 @@ var path = require('path');

conditions[0].setAttribute('NotBefore', now.format('YYYY-MM-DDTHH:mm:ss.SSS[Z]'));
conditions[0].setAttribute('NotOnOrAfter', now.add(options.lifetimeInSeconds, 'seconds').format('YYYY-MM-DDTHH:mm:ss.SSS[Z]'));
conditions[0].setAttribute('NotOnOrAfter', moment(now).add(options.lifetimeInSeconds, 'seconds').format('YYYY-MM-DDTHH:mm:ss.SSS[Z]'));
}

@@ -124,0 +124,0 @@

{
"name": "saml",
"version": "2.0.0",
"version": "2.0.1",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=12"

@@ -98,6 +98,9 @@ var assert = require('chai').assert;

assert.equal(1, conditions.length);
var authenticationInstant = utils.getAuthenticationInstant(signedAssertion);
var notBefore = conditions[0].getAttribute('NotBefore');
var notOnOrAfter = conditions[0].getAttribute('NotOnOrAfter');
should.ok(notBefore);
should.ok(notOnOrAfter);
should.equal(authenticationInstant, notBefore);

@@ -104,0 +107,0 @@ var lifetime = Math.round((moment(notOnOrAfter).utc() - moment(notBefore).utc()) / 1000);

@@ -50,2 +50,6 @@ var xmlCrypto = require('xml-crypto');

exports.getAuthenticationInstant = function (assertion) {
return exports.getAuthenticationStatement(assertion).getAttribute('AuthenticationInstant');
};
exports.getConditions = function(assertion) {

@@ -52,0 +56,0 @@ var doc = new xmldom.DOMParser().parseFromString(assertion);

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