zxvv
4fdee0aa6d
Fix last commit, which misplaced an ACL.
...
Move the ACL inside "acls".
Signed-off-by: Carey Richard Murphey <rich@murphey.org>
2014-09-07 11:26:10 -05:00
zxvv
5255120a22
Add an ACL to User, to allow everyone to execute User.passwordReset().
...
This is intended to permit users who have forgotten their
password, and are thus unauthenticated, to request a reset.
Credit goes to John Murphy who proposed the ACL in Google Groups here:
https://groups.google.com/forum/#!searchin/loopbackjs/passwordReset$20ACL/loopbackjs/UPyhg7KS-9k/_M_9-YpUKmIJ
Signed-off-by: Carey Richard Murphey <rich@murphey.org>
2014-09-06 19:05:32 -05:00
Ritchie Martori
6a604de157
Merge pull request #510 from strongloop/fix/remoting-type-conversion
...
Fix coercion for remoting on vanilla models
2014-09-03 11:55:04 -07:00
Ritchie Martori
58e36514d6
Fix coercion for remoting on vanilla models
2014-09-03 11:33:20 -07:00
Raymond Feng
43dbfa288e
Merge pull request #469 from britztopher/mailconnector-transports-issue460
...
Mailconnector transports issue460
2014-09-03 08:50:03 -07:00
Alexander Ryzhikov
58538f02b7
user#login include server crash fix
...
Signed-off-by: Alexander Ryzhikov <coobaha@gmail.com>
2014-09-03 09:58:49 +04:00
Raymond Feng
9fb60174f9
Merge pull request #519 from fabien/fix/error-response
...
Fix embedsMany/findById to return proper 404 response
2014-09-02 22:42:40 -07:00
Rand McKinney
1af1ec2c43
Update model.js
...
Correct event docs per https://groups.google.com/forum/#!topic/loopbackjs/61qd--Xkowo :
- `deleted` event takes instance arg, not id.
- Add docs for `set` event
2014-09-02 11:11:36 -07:00
Clark Wang
4387957a45
Restrict: only hasManyThrough relation can have additional properties
...
Signed-off-by: Clark Wang <clark.wangs@gmail.com>
2014-09-01 13:55:53 +08:00
Clark Wang
0e6bba4ded
Restrict that only hasManyThrough can have additional properties
...
Signed-off-by: Clark Wang <clark.wangs@gmail.com>
2014-09-01 13:52:14 +08:00
Clark Wang
beea028d5f
Support data field as body for link operation
...
Signed-off-by: Clark Wang <clark.wangs@gmail.com>
2014-09-01 08:52:24 +08:00
Fabien Franzen
33f3ba4549
Fix embedsMany/findById to return proper 404 response
2014-08-30 16:54:14 +02:00
Raymond Feng
9b97014b52
Merge pull request #504 from fabien/feature/embeds-one-remoting
...
Enable remoting for embedsOne relation
2014-08-29 09:30:49 -07:00
Raymond Feng
e856f81d09
Merge pull request #503 from fabien/feature/scope-where
...
Allow 'where' argument for scoped count API
2014-08-29 09:30:38 -07:00
Miroslav Bajtoš
26b67ba757
registry: warn when dataSource is not specified
...
Modify `registry.configureModel()` to log a warning when `dataSource`
optiont is not specified at all.
Users should provide `dataSource: null` when the model is intentionally
not attached to any data-source.
2014-08-26 18:04:06 +02:00
Ritchie Martori
7dde6466e5
Only validate dataSource when defined ( Fixes #482 )
2014-08-26 17:49:15 +02:00
Jaka Hudoklin
19155242c1
Enable remoting for embedsOne relation
...
Signed-off-by: Jaka Hudoklin <jakahudoklin@gmail.com>
2014-08-26 15:25:45 +02:00
Fabien Franzen
fc0c96bdc2
Allow 'where' argument for scoped count API
...
Note that the return value will be non-rooted, which is actually what
the
non-scoped /count method returns as well - fixes inconsistency.
2014-08-26 14:41:36 +02:00
Fabien Franzen
6ccc5a62bf
Account for undefined before/afterListeners
2014-08-22 22:18:24 +02:00
Raymond Feng
c3a33df0ce
Make sure AccessToken extends from PersistedModel
2014-08-18 21:44:38 -07:00
Raymond Feng
e35bc9ed5f
Merge pull request #463 from offlinehacker/master
...
add count to relations and scopes
2014-08-15 13:18:51 -07:00
britztopher
ba48d042b8
added test and fixed changing passed in object within ctor
2014-08-14 15:44:36 -04:00
britztopher
d4bd2bca28
adding the ability to use single or multiple email transports in datasources.json file
2014-08-14 12:07:44 -04:00
britztopher
56fe548a46
added the ability to use an array of transports or just a single trnasport
2014-08-13 15:57:28 -04:00
Jaka Hudoklin
066e87300d
add count to relations and scopes
...
Signed-off-by: Jaka Hudoklin <jakahudoklin@gmail.com>
2014-08-12 15:03:15 +02:00
Miroslav Bajtoš
d93b6127c4
Remove `req.resume` from `app.enableAuth`
...
Remove `req.pause` and `req.resume` from `app.enableAuth`
- they are no longer needed, the request starts paused and there is
no other middleware that would resume it before us.
- when we resume the request after authentication, we force all
other async operations (like sharedCtor) to call pause & resume too,
otherwise data are lost
2014-08-12 13:57:45 +02:00
Ritchie Martori
1ed4e2b9d7
Fix accessToken property docs
2014-08-11 10:55:23 -07:00
Raymond Feng
1c61cedee7
Make sure scoped methods are remoted
...
See https://github.com/strongloop/loopback/issues/454 . It's regression in 2.x.
2014-08-08 15:55:47 -07:00
Raymond Feng
9fb0977433
Pass in remotingContext for ACL
...
See https://github.com/strongloop/loopback/issues/451
2014-08-07 22:19:27 -07:00
Raymond Feng
0e8a69015a
Fix reference to app
...
See https://github.com/strongloop/loopback/issues/452
2014-08-07 21:45:18 -07:00
Raymond Feng
b07aac7377
Merge pull request #449 from fabien/fix/polymorphic-belongs-to
...
Don't assume relation.modelTo in case of polymorphic belongsTo
2014-08-07 13:54:15 -07:00
Raymond Feng
a9e77e0e23
Merge pull request #435 from fabien/feature/deep-remoting
...
Implement Model.nestRemoting
2014-08-07 10:38:09 -07:00
Raymond Feng
ce88ce7733
Fix doc for the EXECUTE
2014-08-07 10:33:36 -07:00
Raymond Feng
0affc65c67
Merge pull request #427 from fabien/feature/relation-paths
...
Allow custom relation path (http) - enable hasOne remoting access
2014-08-07 10:32:13 -07:00
Fabien Franzen
1af95272fe
Don't assume relation.modelTo in case of polymorphic belongsTo
2014-08-07 15:39:07 +02:00
Steve Grosbois
7b94f7a139
Fix "callbacl" by "callback" in doc
2014-08-05 15:17:11 +02:00
Fabien Franzen
539702ab3d
Inherit hooks when nesting
...
Note that for now, the hook ctx.instance will be the root/entry object.
Added `mounted` event - should be useful in other ways too.
2014-08-05 12:14:39 +02:00
Fabien Franzen
18c647a9bb
Changed options.path to options.http.path
2014-08-05 09:10:43 +02:00
Fabien Franzen
cc0d376cc3
filterMethod can also be a direct callback
2014-08-04 19:08:43 +02:00
Fabien Franzen
097daf1deb
filterMethod option (fn) to filter nested remote methods
2014-08-04 19:02:30 +02:00
Fabien Franzen
9be8d11431
Implement Model.nestRemoting
...
Explicitly enable another level of nesting/accessing relations; limited
to a depth of 2 levels.
2014-08-04 18:27:50 +02:00
Raymond Feng
b66a36fd3c
Merge pull request #423 from strongloop/feature/add-remoting-for-exists
...
Feature/add remoting for exists
2014-08-04 08:44:16 -07:00
Fabien Franzen
66fe60e6ca
Allow custom relation path (http) - enable hasOne remoting access
2014-08-01 11:25:28 +02:00
Raymond Feng
ad43d03ebb
Expose Model.exists over HTTP HEAD
2014-07-30 21:57:45 -07:00
Raymond Feng
1fd562ecbd
Return data source for app.dataSource()
2014-07-30 21:57:08 -07:00
Raymond Feng
0590eaf278
Merge pull request #419 from fabien/feature/new-relations
...
Integration of the new juggler relations: embedsMany, referencesMany
2014-07-30 16:32:33 -07:00
Raymond Feng
7fe68a6ee1
Merge pull request #415 from strongloop/feature/add-remoting-for-exists
...
Map exists to HEAD for REST
2014-07-30 10:22:16 -07:00
Fabien Franzen
b9f27d71a8
Integration test: referencesMany
2014-07-30 15:01:22 +02:00
Fabien Franzen
514db0bc66
Integration test: embedsMany
2014-07-30 13:24:40 +02:00
Rand McKinney
85c68651bc
Fix jsdoc for remoteMethod()
2014-07-29 11:54:26 -07:00
Raymond Feng
e5b0e8cd70
Map exists to HEAD for REST
2014-07-28 09:37:50 -07:00
Raymond Feng
71f9dbd4b0
Merge pull request #412 from strongloop/feature/fix-issue-408
...
Build the email verification url from app context
2014-07-28 08:23:02 -07:00
Raymond Feng
d638b29f55
Fix https://github.com/strongloop/loopback/issues/413
2014-07-27 00:41:43 -07:00
Raymond Feng
567e2530d7
Build the email verification url from app context
...
https://github.com/strongloop/loopback/issues/408
2014-07-26 22:39:42 -07:00
Raymond Feng
5aee3b7f61
Merge pull request #402 from strongloop/feature/emit-model-remoted-event
...
Emit a 'modelRemoted' event by app.model()
2014-07-25 09:06:46 -07:00
Raymond Feng
af26e09845
Emit a 'modelRemoted' event by app.model()
...
This event will be listened by loopback-explorer so that models remoted
after the explorer is initiated will be added to the api specs
2014-07-24 17:00:27 -07:00
Raymond Feng
ab8d82d7f9
Fix remoting types for related models
2014-07-24 10:26:49 -07:00
Raymond Feng
ac1428eff5
Fix for email transports
2014-07-23 22:09:24 -07:00
Raymond Feng
58da6277e3
Merge pull request #390 from strongloop/feature/refactor-relation-remoting
...
Move remoting metadata from juggler to loopback
2014-07-22 11:12:53 -07:00
Raymond Feng
13c876c154
Merge pull request #387 from strongloop/feature/fix-base-model
...
Set up the base model based on the connector types
2014-07-22 10:58:33 -07:00
Raymond Feng
335bae4b46
Merge branch 'master' into feature/fix-issue-377
2014-07-22 10:49:20 -07:00
Raymond Feng
21b8609ee2
Report error for User.confirm()
...
See https://github.com/strongloop/loopback/issues/377
2014-07-22 10:42:22 -07:00
Miroslav Bajtoš
070f3d9583
Merge pull request #392 from strongloop/feature/drop-swagger
...
Remove `app.docs()`
2014-07-22 19:41:42 +02:00
Raymond Feng
643293cc25
Set up the base model based on the connector types
2014-07-22 10:38:14 -07:00
Miroslav Bajtoš
bba58a73d5
express-middleware: improve error message
...
Include the flag `--save` in the npm instructions, so that the missing
module is both installed and saved in package dependencies.
2014-07-22 15:40:36 +02:00
Miroslav Bajtoš
c7bca9da78
Remove `app.docs()`
...
The swagger integration was moved to loopback-explorer.
2014-07-22 15:08:23 +02:00
Raymond Feng
74e9ff75e3
Merge pull request #385 from offlinehacker/master
...
Validate username uniqueness
2014-07-21 15:26:01 -07:00
Raymond Feng
0dae813d5f
Merge pull request #375 from strongloop/feature/upgrade-to-nodemailer-1.x
...
Upgrade to nodemailer 1.0.1
2014-07-21 11:58:17 -07:00
Miroslav Bajtoš
eb5ef04b6a
Remove `loopback.compat.usePluralNamesForRemoting`
...
The `usePluralNamesForRemoting` was added in January 2014 for users
upgrading from LoopBack 1.5 or older.
2014-07-21 16:56:46 +02:00
Jaka Hudoklin
90094e5e86
Validate username uniqueness
...
Signed-off-by: Jaka Hudoklin <jakahudoklin@gmail.com>
2014-07-19 14:18:21 +02:00
Raymond Feng
4f7a9869e0
Add descriptions for custom methods on user model
2014-07-18 22:48:07 -07:00
Raymond Feng
30c35ca5ef
Move remoting metadata from juggler to loopback
2014-07-16 16:35:43 -07:00
Raymond Feng
e5b64c6143
Upgrade to nodemailer 1.0.1
2014-07-16 12:40:15 -07:00
Raymond Feng
4e1d8c9a4e
Merge branch '1.x' into 2.0
2014-07-16 11:06:24 -07:00
Raymond Feng
a28e5b5897
Enhance the error message
2014-07-16 11:04:23 -07:00
Raymond Feng
79f504a3c7
Merge branch 'master' into 2.0
2014-07-16 09:09:07 -07:00
Raymond Feng
c5c28aa634
Merge pull request #368 from strongloop/feature/loopback-base-model
...
Refactor modelBuilder to registry and set up default model
2014-07-15 08:38:43 -07:00
Raymond Feng
3c13ce5a8f
Refactor modelBuilder to registry and set up default model
2014-07-15 08:37:59 -07:00
Miroslav Bajtoš
da9b724222
lib/application: publish Change models to REST API
...
When a public model is added to an application and the model has change
tracking enabled, its Change model is added to the public models.
Before this change, conflict resolution in the browser was not working,
because it was not possible to fetch the remote change.
2014-07-15 09:31:16 +02:00
Miroslav Bajtoš
087c602669
models/change: fix typo
2014-07-15 09:14:54 +02:00
Raymond Feng
22e929e439
Fix credentials/challenges types
...
Associated identities and credentials are now captured by models in
loopback-component-passport. These two properties will be removed in
2.x.
2014-07-14 14:22:21 -07:00
crandmck
b5c47dc7a5
Split out aliases for deleteById and destroyAll functions for jsdoc.
2014-07-11 15:41:14 -07:00
Miroslav Bajtoš
31ef6394b4
checkpoint: fix `current()`
...
Fix the query in `Checkpoint.current()` to correctly specify sorting
`seq DESC`. Before this change, the first checkpoint was returned as the
current one.
2014-07-11 17:07:22 +02:00
Raymond Feng
de831dbd33
Fix the typo
2014-07-08 08:54:13 -07:00
Raymond Feng
0c67b1e781
Add an option to honor emailVerified
...
See https://github.com/strongloop/loopback/pull/215
2014-07-07 14:09:45 -07:00
Raymond Feng
217c9fa348
Fix the typo and add Bearer token support
...
See https://github.com/strongloop/loopback/issues/333
2014-07-02 09:02:13 -07:00
Aleksandr Tsertkov
476dd8214d
Fix misleading token middleware documentation
...
Signed-off-by: Aleksandr Tsertkov <tsertkov@gmail.com>
2014-07-01 16:59:49 +02:00
Miroslav Bajtoš
8ea11ea955
Merge branch 'master' into 2.0
...
Land the pull request #357
> app: update `url` on `listening` event
2014-07-01 16:18:00 +02:00
Miroslav Bajtoš
dfa8d7f49f
app: update `url` on `listening` event
...
Most applications report the URL when started (at least the apps we
are scaffolding using loopback-workspace). Constructing the URL in the
loopback core allows us to simplify the templates and reduce the amount
of repeated code.
2014-07-01 14:27:02 +02:00
Miroslav Bajtoš
10d29c7d86
Merge branch 'master' into 2.0
...
Conflicts:
package.json
2014-06-27 10:36:06 +02:00
Miroslav Bajtoš
45d026e7de
Merge pull request #335 from karlmikko/bug/invalid-token-unhandled
...
Ignore unhanded error - simulate token missing
2014-06-27 09:56:17 +02:00
Guilherme Cirne
3fba6c50f0
Fix "ReferenceError: loopback is not defined" in registry.memory().
...
Signed-off-by: Guilherme Cirne <gcirne@gmail.com>
2014-06-26 10:40:28 -03:00
Miroslav Bajtoš
50816ebbe3
Fix loopback in PhantomJS, fix karma tests
...
- Move configuration of Karma unit-tests from `Gruntfile.js` to a
standalone file (`test/karma.conf.js`).
- Add a new Grunt task `karma:unit-ci` to run Karma unit-tests in
PhantomJS and produce karma-xunit.xml file that can be consumed
by the CI server.
- Add grunt-mocha-test, configure it to run unit-tests.
- Add `grunt test` task that runs both karma and mocha tests,
detects Jenkins to produce XML output on CI server.
- Modify the `test` script in `package.json` to run
`grunt mocha-and-karma` (an alias for `grunt test`).
The alias is required to trick `sl-ci-run` to run `npm test`
instead of calling directly `mocha`.
- Add `es5-shim` module to karma unit-tests in order to provide
ES5-methods required by LoopBack.
- Fix `mixin(source)` in lib/loopback.js to work in PhantomJS.
`Object.getOwnPropertyDescriptor()` provided by `es5-shim` does not
work in the same way as in Node.
2014-06-26 13:30:09 +02:00
Karl Mikkelsen
46af483bdd
Invalid Access Token return 401
...
Clean up logic to be easier to read.
Signed-off-by: Karl Mikkelsen <karl@karlmikko.com>
2014-06-26 08:50:41 +10:00
Raymond Feng
70c1cb5ce0
Update debug setting
2014-06-25 09:09:04 -07:00
Miroslav Bajtoš
c896c78db0
Remove `app.boot`
...
Modify `app.boot` to throw an exception, pointing users to the new
module `loopback-boot`.
2014-06-25 14:09:06 +02:00
Miroslav Bajtoš
70615696cd
Mark `app.boot` as deprecated.
2014-06-25 13:44:07 +02:00
Raymond Feng
9eab7d62d3
Merge branch 'master' into 2.0
2014-06-20 23:48:46 -07:00
Raymond Feng
b44dac3c62
Merge branch 'master' into 2.0
2014-06-20 23:08:35 -07:00
Samuel Reed
afd8de0c31
Fix a slowdown caused by mutation of an incoming accessToken option.
2014-06-20 16:39:28 -05:00