Commit Graph

1953 Commits

Author SHA1 Message Date
jannyHou 80cb175105 2.42.0
* fix: disallow queries in username and email fields (Hage Yaapa)
 * update README for 2.x EOL (Diana Lau)
2019-06-04 13:45:02 -04:00
Janny 0932409052
Merge pull request #4213 from strongloop/2.x-backport
fix: disallow queries in username and email fields
2019-06-04 13:33:56 -04:00
Hage Yaapa 2dd98a368b fix: disallow queries in username and email fields
Username and email fields should not allow queries.
2019-06-04 11:49:19 -04:00
Diana Lau a3619df4b5
Merge pull request #4188 from strongloop/2.x-eol
update README for 2.x EOL
2019-05-02 11:17:18 -04:00
Diana Lau d413c4e215 update README for 2.x EOL 2019-04-30 15:05:38 -04:00
Miroslav Bajtoš 85b076c9b9
2.41.2
* Fix crash when modifying an unknown user (Matheus Horstmann)
 * test: fix User test for custom token generator (Miroslav Bajtoš)
 * test: improve assertion error messages (Miroslav Bajtoš)
2019-01-11 16:46:32 +01:00
Miroslav Bajtoš 2992cfbbdf
Merge pull request #4111 from strongloop/fix-crash-when-replacing-unknown-user
Fix crash when modifying an unknown user
2019-01-11 16:45:50 +01:00
Matheus Horstmann d4e8116023
Fix crash when modifying an unknown user
Signed-off-by: Matheus Horstmann <mch15@inf.ufpr.br>
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-01-11 16:19:15 +01:00
Miroslav Bajtoš e513019ed5
Merge pull request #4082 from strongloop/fix/windows-ci
Fix CI build errors on Windows
2018-11-27 08:47:03 +01:00
Miroslav Bajtoš 9647294f7c
test: fix User test for custom token generator 2018-11-26 11:26:38 +01:00
Miroslav Bajtoš 2a78d953d9
test: improve assertion error messages 2018-11-26 11:26:34 +01:00
Miroslav Bajtoš 6638992b99
2.41.1
* Fix: treat empty access token string as undefined (andrey-abramow)
 * Fix context propagation broken by async@2.x (Miroslav Bajtoš)
2018-11-26 11:14:37 +01:00
Miroslav Bajtoš e0fc5139c7
Merge pull request #4079 from andrey-abramow/2.x
Fix compatibility with loopback-datasource-juggler 2.56.0
2018-11-26 11:14:02 +01:00
andrey-abramow 21e69f0c14
Fix: treat empty access token string as undefined
Fix AccessToken's method tokenIdForRequest to treat an empty string
as if no access token was provided.

This is needed to accomodate the changes made in
loopback-datasource-juggler@2.56.0.
2018-11-26 11:00:02 +01:00
Miroslav Bajtoš b064b6d4bf
Merge pull request #4025 from strongloop/disable-context-tests
Fix context propagation broken by async@2.x
2018-10-15 16:44:55 +02:00
Miroslav Bajtoš 228bc7519b
Fix context propagation broken by async@2.x
Rework the REST middleware to use a hand-written version of
"async.eachSeries". Before this change, we were loosing CLS context
when the application was relying on the REST middleware to load the
context middleware.

This is fixing a problem introduced by post-1.0 versions of async,
which we upgraded to via fea3b781a.
2018-10-15 13:30:20 +02:00
Diana Lau 43a1f537db 2.41.0
* Update LB2 LTS version (Diana Lau)
2018-10-09 16:06:34 -07:00
Diana Lau 24d0338941
Merge pull request #4023 from strongloop/2.x-status
Update LB2 LTS version
2018-10-09 18:58:25 -04:00
Diana Lau 087dae6a13 Update LB2 LTS version 2018-10-05 22:36:09 -04:00
virkt25 b27971e074 2.40.0
* fix: accessToken create default acl (virkt25)
2018-08-08 18:17:11 -04:00
virkt25 c36f9e88a3 fix: accessToken create default acl 2018-08-08 18:15:09 -04:00
Kevin Delisle 8be91b8129 2.39.2
* Babelify juggler for Karma tests (Miroslav Bajtoš)
 * Fix Karma config to babelify node_modules too (Miroslav Bajtoš)
2018-02-12 12:03:02 -05:00
Kevin Delisle 490eced414
Merge pull request #3790 from strongloop/backport/babel-es6-to-es5
Backport/babel es6 to es5
2018-02-12 12:01:32 -05:00
Miroslav Bajtoš 1575becb92 Babelify juggler for Karma tests
Fix configuration of Karma:

 - Disable ES6 modules. The ES6 module transpiler is adding
  "use strict" to all source files, this breaks e.g. chai or juggler
 - Relax "ignore" setting to exclude only strong-task-emitter,
   thus bring back Babel transpilation for chai and juggler.
2018-02-09 10:38:22 -05:00
Miroslav Bajtoš b2cf877d14 Fix Karma config to babelify node_modules too
Before this change, dependencies in node_modules (e.g. strong-remoting)
were not transformed to ES5 and thus crashed the tests in PhantomJS.

Note that loopback-datasource-juggler cannot be babelified to ES5
because it does not correctly support strict mode yet.
2018-02-08 16:58:12 -05:00
Taranveer Virk c650b0db87 2.39.1
* update juggler dep (Taranveer Virk)
 * fix(id): replace with != null (Samuel Reed)
 * fix(AccessContext): Tighten userid/appid checks (Samuel Reed)
2018-01-31 16:58:02 -05:00
Taranveer Virk 9e30e277fe
Merge pull request #3782 from strongloop/update-juggler-2
update juggler dep
2018-01-31 16:41:07 -05:00
Taranveer Virk 7ddc0b14cf update juggler dep 2018-01-31 14:40:37 -05:00
Miroslav Bajtoš 6425e8307e
Merge pull request #3719 from STRML/fix/falsy-id
fix(id): replace with != null
2017-12-08 15:25:12 +01:00
Samuel Reed 2e0f3d15f9
fix(id): replace with != null
Ref: #2356, #2374, #3130, #3693
2017-12-05 09:49:50 -06:00
Miroslav Bajtoš e22b960d4e
Merge pull request #3693 from STRML/fix/falsy-principalid-2x
fix(AccessContext): Tighten falsy userid/appid check
2017-12-05 16:20:34 +01:00
Samuel Reed 787f393c7c
fix(AccessContext): Tighten userid/appid checks
An application may have a use for a falsy ID.
2017-12-05 08:51:21 -06:00
Miroslav Bajtoš 6e0e60c2a2
2.39.0
* Drop support for Node.js versions 0.10 and 0.12 (Miroslav Bajtoš)
 * test: fix too strict test assertion (Miroslav Bajtoš)
 * Add unit test for empty password (loay)
 * Update translated strings Q2 2017 (Allen Boone)
2017-10-23 09:22:09 +02:00
Miroslav Bajtoš 01e2e61cfe Merge pull request #3660 from strongloop/drop/node-0x
Drop support for Node.js versions 0.10 and 0.12
2017-10-23 09:20:37 +02:00
Miroslav Bajtoš 538bc9a7d5
Drop support for Node.js versions 0.10 and 0.12
Some of our dependencies are no longer supporting pre-4.0 versions of
Node.js. As a result, our CI builds are failing on these platforms.

This pull request removes 0.10 and 0.12 from our Travis CI build matrix
and also adds "engines" field to package.json to tell our internal
Jenkins CI to stop testing 0.10 and 0.12 versions too.
2017-10-19 16:47:53 +02:00
Miroslav Bajtoš 566caa9bab Merge pull request #3655 from strongloop/fix/build-2x
test: fix too strict test assertion
2017-10-19 16:47:01 +02:00
Miroslav Bajtoš 4f928bf965
test: fix too strict test assertion
Rework the test verifying properties of `loopback` to ignore
new express properties added after the test was written.

Ignore "json" and "urlencoded" middleware that was added back
to Express, keep using our wrappers printing a deprecation message.
2017-10-17 14:16:20 +02:00
Loay cd8f1775bc Merge pull request #3481 from strongloop/empty_password
Add unit test for empty password
2017-07-21 16:52:39 -04:00
loay 22bd0fc81f Add unit test for empty password 2017-07-21 15:46:21 -04:00
Candy 0fdca8ee0d Merge pull request #3419 from kallenboone/piiReturn_2.x
Update translated strings [PII Return Q2 2017]
2017-05-23 14:43:14 -04:00
Allen Boone 41c31118d8 Update translated strings Q2 2017 2017-05-23 13:02:39 -04:00
Candy 2135abc1db 2.38.3
* use lower version of karma-browserify (Diana Lau)
 * update karma-browserify to 5.x (Diana Lau)
 * update translation msg (Diana Lau)
 * Fix user-literal rewrite for anonymous requests (Aaron Buchanan)
 * Forward options in prepareForTokenInvalidation (Miroslav Bajtoš)
2017-04-17 16:40:50 -04:00
Diana Lau 661d62e817 Merge pull request #3346 from strongloop/update-dependencies
[2.x] Update deprecated dependencies
2017-04-17 18:03:29 +00:00
Diana Lau f1f9aab606 use lower version of karma-browserify 2017-04-13 15:28:48 -04:00
Diana Lau 645d5c615b update karma-browserify to 5.x
update karma-browserify to 5.x
2017-04-12 10:43:22 -04:00
Diana Lau 62d6ecb9d2 Merge pull request #3354 from strongloop/update-msg
[2.x] update translation msg
2017-04-12 14:07:02 +00:00
Diana Lau 1ec7a265a7 update translation msg 2017-04-11 14:36:41 -04:00
Miroslav Bajtoš cf38c62c00 Merge pull request #3330 from strongloop/fix/unauthorized-current-user-literal-2x
Fix user-literal rewrite for anonymous requests
2017-04-04 19:26:45 +02:00
Aaron Buchanan 50e0e4808a
Fix user-literal rewrite for anonymous requests
Currently any `currentUserLiteral` routes when accessed with a bad
token throw a 500 due to a SQL error that is raised because
`Model.findById` is invoked with `id={currentUserLiteral}`
(`id=me` in our case) when the url rewrite fails.

This commit changes the token middleware to return 401 Not Authorized
when the client is requesting a currentUserLiteral route without
a valid access token.
2017-04-04 18:55:34 +02:00
Miroslav Bajtoš ac2462e11d Merge pull request #3309 from strongloop/fix/options-in-token-invalidations
Forward options in prepareForTokenInvalidation
2017-03-28 15:46:59 +02:00