passport-saml
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -16,3 +16,2 @@ /** | ||
var CacheProvider = function (options) { | ||
var self = this; | ||
@@ -32,4 +31,3 @@ this.cacheKeys = {}; | ||
// Expire old cache keys | ||
setInterval(function(){ | ||
var expirationTimer = setInterval(function(){ | ||
var nowMs = new Date().getTime(); | ||
@@ -44,2 +42,7 @@ var keys = Object.keys(self.cacheKeys); | ||
// we only want this to run if the process is still open; it shouldn't hold the process open (issue #68) | ||
// (unref only introduced in node 0.9, so check whether we have it) | ||
// Skip this in 0.10.34 due to https://github.com/joyent/node/issues/8900 | ||
if (expirationTimer.unref && process.version !== 'v0.10.34') | ||
expirationTimer.unref(); | ||
}; | ||
@@ -46,0 +49,0 @@ |
@@ -37,2 +37,6 @@ var zlib = require('zlib'); | ||
if (options.authnContext === undefined) { | ||
options.authnContext = "urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"; | ||
} | ||
if (!options.acceptedClockSkewMs) { | ||
@@ -133,3 +137,3 @@ // default to no skew | ||
'@xmlns:saml': 'urn:oasis:names:tc:SAML:2.0:assertion', | ||
'#text': 'urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport' | ||
'#text': self.options.authnContext | ||
} | ||
@@ -136,0 +140,0 @@ }; |
{ | ||
"name": "passport-saml", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"licenses": [ | ||
@@ -5,0 +5,0 @@ { |
@@ -58,2 +58,4 @@ Passport-SAML | ||
* `attributeConsumingServiceIndex`: optional `AttributeConsumingServiceIndex` attribute to add to AuthnRequest to instruct the IDP which attribute set to attach to the response ([link](http://blog.aniljohn.com/2014/01/data-minimization-front-channel-saml-attribute-requests.html)) | ||
* `disableRequestedAuthnContext`: if truthy, do not request a specific auth context | ||
* `authnContext`: if truthy, name identifier format to request auth context (default: `urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport`) | ||
@@ -119,2 +121,3 @@ ### Provide the authentication callback | ||
cert: 'MIICizCCAfQCCQCY8tKaMc0BMjANBgkqh ... W==', | ||
authnContext: 'http://schemas.microsoft.com/ws/2008/06/identity/authenticationmethod/windows', | ||
identifierFormat: null | ||
@@ -121,0 +124,0 @@ } |
Sorry, the diff of this file is too big to display
225383
2186
192