Releases: vesse/passport-ldapauth
Releases · vesse/passport-ldapauth
Allow any version of `@types/node`
Release candidate with ldapjs next dependency
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
Publish #86 which allows configuring the HTTP status code of missing credentials failure response
Run error handler only once
Add noSuchObject error message
TypeScript types, Bunyan logger, cleanup
- 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
ldapauth-fork
now re-emitsldapjs
errors and they can now be handled inauthenticate
.- Added new option
handleErrorsAsFailures
that makes the strategy callfail
instead oferror
with emitted or callback returned errors.
Added credentialsLookup
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};
}
}
Update ldapauth-fork
Include falsy credential handling improvements in latest ldapauth-fork release
ldapjs 1.0
Update ldapjs to 1.0