Comparing version 0.1.1 to 0.1.2
@@ -246,3 +246,3 @@ /** | ||
*/ | ||
exports.version = '0.1.1'; | ||
exports.version = '0.1.2'; | ||
@@ -249,0 +249,0 @@ /** |
@@ -80,3 +80,3 @@ /** | ||
} | ||
delegate.fail = function() { | ||
delegate.fail = function(challenge) { | ||
if (callback) { | ||
@@ -87,4 +87,2 @@ return callback(null, false); | ||
} | ||
// TODO: Set WWW-Authenticate header with challenge | ||
//this.res.setHeader('WWW-Authenticate', 'Basic realm="WWW"'); | ||
@@ -96,2 +94,5 @@ // When failure handling is not delegated to the application, the default | ||
res.statusCode = 401; | ||
if (challenge) { | ||
this.res.setHeader('WWW-Authenticate', challenge); | ||
} | ||
res.end('Unauthorized'); | ||
@@ -98,0 +99,0 @@ } |
{ | ||
"name": "passport", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Authentication framework for Connect and Express.", | ||
@@ -5,0 +5,0 @@ "author": "Jared Hanson <jaredhanson@gmail.com> (http://www.jaredhanson.net/)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
644
0
20041