Skip to content

Releases: vesse/passport-ldapauth

Allow any version of `@types/node`

25 Feb 17:02
Compare
Choose a tag to compare
v2.1.4

2.1.4: Allow any version of @types/node

Release candidate with ldapjs next dependency

25 Feb 17:01
Compare
Choose a tag to compare

ldapjs is preparing for a new release in which eg. close works also on Node v10+. This pre-release depends on the pre-release version of ldapjs

Allow configuring HTTP status of missing credentials

01 Apr 18:03
Compare
Choose a tag to compare

Publish #86 which allows configuring the HTTP status code of missing credentials failure response

Run error handler only once

01 Apr 18:03
Compare
Choose a tag to compare

Add noSuchObject error message

01 Apr 18:04
Compare
Choose a tag to compare

TypeScript types, Bunyan logger, cleanup

13 Jun 17:38
Compare
Choose a tag to compare
  • Updated ldapauth-fork to 4.0.0 which uses Bunyan logger instead of log4js
  • Added TypeScript type definitions

Handle ldapjs errors and allow handling errors as failures

02 Jan 20:15
Compare
Choose a tag to compare
  • ldapauth-fork now re-emits ldapjs errors and they can now be handled in authenticate.
  • Added new option handleErrorsAsFailures that makes the strategy call fail instead of error with emitted or callback returned errors.

Added credentialsLookup

14 Sep 06:42
Compare
Choose a tag to compare

Added option credentialsLookup. It can be used to provide a synchronous function that receives req object as argument and must return object with keys username and password (or name and pass as a courtesy to basic-auth users) which will then be used for login.

Use for Basic Auth:

var basicAuth = require('basic-auth');
var ldapOpts = {
  server: { },
  credentialsLookup: basicAuth
}

Or eg. simpler body parsing when you know what you're handling:

var ldapOpts = {
  server: { },
  credentialsLookup: function(req) {
    return {username: req.body.username, password: req.body.password};
  }
}

Fixes #4, #30, #46

Update ldapauth-fork

14 Sep 06:45
Compare
Choose a tag to compare

Include falsy credential handling improvements in latest ldapauth-fork release

ldapjs 1.0

14 Sep 06:44
Compare
Choose a tag to compare

Update ldapjs to 1.0