Socket
Socket
Sign inDemoInstall

passport-activedirectory

Package Overview
Dependencies
22
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.3.0

7

index.js

@@ -124,4 +124,7 @@ 'use strict';

return _this._ad.authenticate(userProfile._json.dn, password, function (err, auth) {
if (err) return _this.error(err);
if (!auth) return _this.fail('Authentication failed for ' + username);
var authFailureMessage = 'Authentication failed for ' + username;
if (err) {
return err.prototype.name === 'InvalidCredentialsError' ? _this.fail(authFailureMessage + ': [' + err.message + ']') : _this.error(err);
}
if (!auth) return _this.fail(authFailureMessage);
return verify(userProfile);

@@ -128,0 +131,0 @@ });

{
"name": "passport-activedirectory",
"version": "1.2.0",
"version": "1.3.0",
"description": "Active Directory strategy for passport.js",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc