Socket
Socket
Sign inDemoInstall

passport

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

lib/passport/index.js

@@ -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/)",

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