Vesa Poikajärvi
7b6feee984
Bump dep and fix test
2020-11-16 21:20:17 +02:00
dolcimascolod
2ee9c0f1d1
Support options.missingCredentialsStatus
2019-04-01 11:19:28 +02:00
Vesa Poikajärvi
62b7a5f632
Was not intentional to exclude tsconfig
2017-06-14 15:12:23 +03:00
Vesa Poikajärvi
407e03e18e
Add typescript test file
2017-06-13 20:31:01 +03:00
Vesa Poikajärvi
dec939fde6
Prevent multiple done calls
2017-01-02 22:01:31 +02:00
Vesa Poikajärvi
74ca4423ed
Option to handle errors as failures
...
Fixes #38
2017-01-02 21:41:34 +02:00
Vesa Poikajärvi
0f2489998e
ldapauth-fork to 3.0.0 and now can handle emitted errors
2017-01-02 20:51:00 +02:00
Vesa Poikajärvi
87019bacfd
Added creadentialsLookup
...
Now a lookup function can be provided in options:
var opts = {
credentialsLookup: function(req) {
return {username: req.body.username, password: req.body.password};
}
};
Fixes #46
2016-09-14 09:31:01 +03:00
Vesa Poikajärvi
1371d0c0c0
Added test for groupSearchFilter = function (ldapauth-fork 2.5.3)
2016-08-10 09:18:12 +03:00
Vesa Poikajärvi
c48602a029
Fix the ENOTFOUND test and find out it fails
2015-10-31 16:03:24 +02:00
Vesa Poikajärvi
0b7e1d0c4b
Update ldapauth-fork dependency and get also ldapjs 1.0.0
...
Closes #26
Closes #29
Closes #40
2015-10-31 15:58:22 +02:00
Vesa Poikajärvi
c31ffb8b98
Remove session from tests, not needed afterall
2015-10-05 08:21:20 +03:00
Vesa Poikajärvi
5950e80564
Add test for AD message parsing
2015-10-04 22:52:36 +03:00
Anthony Hernandez
1dbf5e024d
Add option for default MS AD error message
...
Fix typo in test
Fix broken message availability
2015-10-01 12:46:00 -05:00
Vesa Poikajärvi
a8de8c5436
Use proper attribute in test
2015-02-24 20:38:43 +02:00
Vesa Poikajärvi
20c3a2e7b3
Return groups from LDAP server, test they were received
2015-02-24 20:02:15 +02:00
Vesa Poikajärvi and Vesa Poikajärvi
44a216dd96
Add initial test for group fetching
2015-02-24 19:10:09 +02:00
arumi
a72611dd49
Multiple LDAP Server Configurations Support: Instead of providing a static configuration object, you can pass a function as options that will take care of fetching the configuration. It will be called with a callback function having the standard (err, result) signature. Notice that the provided function will be called on every authenticate request
2015-02-23 10:31:12 +01:00
Vesa Poikajärvi
eb21296f7c
Inherit from passport-strategy
...
(peer)Depending on passport is no longer (well, hasn't been for a while)
required. Inherit from passport-strategy instead.
2015-01-27 20:17:19 +02:00
Vesa Poikajärvi
6aeffe5146
Use bindDn and bindCredentials
2014-11-19 14:14:36 +07:00
Vesa Poikajärvi
d563452d59
Flash message options, return HTTP 400 if username/password missing
...
Do as passport-local does:
- provide possibility to define the flash messages used when calling
passport.authenticate().
- rturn HTTP 400 when username or password is missing
2014-10-17 10:53:40 +07:00
Vesa Poikajärvi
be023e5f76
Update devDependencies
2014-09-12 14:45:03 +07:00
Vesa Poikajärvi
c530c79929
Update devDependencies and test code
2014-06-05 09:34:29 +03:00
Vesa Poikajärvi
1ac0e78e77
Providing a single function is no more an error
...
With the possibility to pass a function as options we cannot assume the
given parameter is a verify callback if it's a function, thus removed
the test.
2014-02-12 16:18:27 +07:00
Vesa Poikajärvi
074654960d
Added couple of tests for options as function
...
Pull request #8 did not contain any tests. Add some that verify it works
now, and then get rid of regression caused by the pull request without
breaking desired functionality.
2014-02-12 15:38:54 +07:00
Vesa Poikajärvi
ac2cbd0213
Refactored tests
2013-08-19 21:41:18 +03:00
Vesa Poikajärvi
a60f6dddb9
Fix a test, add query string test
...
Verification of the assertions was missing in one test. Added a test
that sends the credentials in query string.
2013-07-14 22:38:25 +03:00
Vesa Poikajärvi
b49238f92b
Tests updated
2013-05-03 22:27:58 +03:00
Vesa Poikajärvi
152866e301
Create LDAP client on every authenticate request
...
There is an issue in ldapjs[1] which causes unhandled error when the
underlying socket gets closed due to inactivity. Create a new ldapauth
instance on every authentication request to address this issue.
[1] https://github.com/mcavage/node-ldapjs/issues/127
2013-04-16 13:29:23 +03:00
Vesa Poikajärvi
5e04bb6f9d
Test passReqToCallback works
...
Added test that verifies request is passed to verify callback if
configured to do so.
2013-04-14 09:00:34 +03:00
Vesa Poikajärvi
65a15b398a
Made verify callback optional, added tests
...
Always requiring applications to provide a verify callback does not
really make sense for LDAP because users are authenticated (and
authorized) from LDAP. Thus made it optional.
Also added test for reading credentials from user defined keys.
2013-04-13 21:01:07 +03:00
Vesa Poikajärvi
0c14530265
Valid/invalid login tests
...
Simple LDAP server now allows everyone to access but only two users to
bind, and can return only one user record. With these we are able to
test that return values of ldapauth are handled somewhat correctly.
2013-04-13 19:53:40 +03:00
Vesa Poikajärvi
2fa9bb62c7
First login test and authentication implementation
...
First authentication implementation. LDAP test server does not work yet.
2013-04-13 19:05:35 +03:00
Vesa Poikajärvi
11f2a99e0e
Start servers in tests
2013-04-13 18:27:13 +03:00
Vesa Poikajärvi
deb1400918
Initial test servers
...
Added initial Express and ldapjs servers. Do not work yet.
2013-04-13 18:26:44 +03:00
Vesa Poikajärvi
ae0800b24e
Initial commit
2013-04-13 16:56:15 +03:00