Commit Graph

1922 Commits

Author SHA1 Message Date
Miroslav Bajtoš c36e20587e Merge pull request #163 from strongloop/feature/include-user-in-login-result
Include user in login result
2014-01-30 10:24:14 -08:00
Raymond Feng c711b99b8a Merge pull request #154 from strongloop/feature/debug-login-error
Add debug information for user.login
2014-01-30 10:13:26 -08:00
Miroslav Bajtoš d6f0b5f5a6 Add `include=user` param to `User.login`
Allow LB clients to get details of the currently logged-in user
as part of the login response.

Improve method's `description` to mention this new option.
2014-01-30 18:09:54 +01:00
Miroslav Bajtoš 03cb2f0556 Describe `access_token` param of `User.logout`
Add an explicit note that clients are not supposed to send the
`access_token` parameter, since it is extracted from request
headers.
2014-01-30 18:09:54 +01:00
Raymond Feng 6177aa2775 Merge pull request #164 from strongloop/feature/fix-accesstoken-id
Remove the generated flag for access token id
2014-01-30 09:09:02 -08:00
Raymond Feng 57796a41cd Remove the generated flag for access token id
The generated flag is used to indicate if the id is automatically generated
by the backend store. If it's set, the data type will be updated when the
model is attached to a datasource.

The AccessToken model defines a string id, which is set in the beforeCreate
hook. So it's client provided id.
2014-01-30 09:02:12 -08:00
Ritchie Martori a0e595dce8 Add model tests 2014-01-28 14:46:16 -08:00
Ritchie Martori 2582c3fc65 Add replication example 2014-01-28 12:54:41 -08:00
Raymond Feng 938cafeb77 Remove message prefix as debug will print it 2014-01-27 14:47:48 -08:00
Raymond Feng c35f762d4e Add debug information for user.login 2014-01-27 14:31:38 -08:00
Miroslav Bajtoš 0779d07fe2 Merge tag 'v1.6.0'
v1.6.0
2014-01-27 10:46:49 +01:00
Miroslav Bajtoš eb35572550 Merge branch 'release/1.6.0' into production 2014-01-27 10:46:31 +01:00
Miroslav Bajtoš a02f44a270 v1.6.0 2014-01-27 10:45:49 +01:00
Miroslav Bajtoš fa0f402cb2 Merge pull request #151 from strongloop/feature/improve-remoting-metadata
Improve remoting metadata: register exported models using singular names
2014-01-27 01:38:42 -08:00
Miroslav Bajtoš 4699219b70 Update dependencies
strong-remoting ~1.2.1
loopback-datasource-juggler ~1.2.13
2014-01-27 10:29:57 +01:00
Miroslav Bajtoš 20766e251a Add loopback.compat to simplify upgrade to 1.6
Add a compatibility layer that allows applications based on LB pre-v1.6
to work with 1.6 versions with a minimum amount of changes required.

New flag(s):
  compat.usePluralNamesForRemoting
2014-01-27 10:29:57 +01:00
Miroslav Bajtoš 8bb8861ba1 Register exported models using singular names
Remove the inconsistency between model names used by LoopBack app and
datasource-juggler (modelName, e.g. User) and the name used by
strong-remoting (pluralModelName, e.g. Users).

This way the class name in the strong-remoting metadata can be used
by client-code generators. Before this change, the generators would
produce method names like `Users.login`.
2014-01-27 10:29:57 +01:00
Miroslav Bajtoš 54bff35fef User: use User.http.path
Use the new property introduced by a recent change in
loopback-datasource-juggler instead of building the URL
manually from pluralModelName.
2014-01-27 10:29:57 +01:00
Ritchie Martori 1a13a8d95e Add Checkpoint model and Model replication methods 2014-01-26 14:02:56 -08:00
Ritchie Martori 4be3395298 Add Change model 2014-01-26 13:20:19 -08:00
Raymond Feng 7230890aa9 Merge tag 'v1.5.3'
1.5.3
2014-01-23 15:55:20 -08:00
Raymond Feng c277be78fc Merge branch 'release/1.5.3' into production 2014-01-23 15:55:12 -08:00
Raymond Feng 4f72737b95 Bump version 2014-01-23 15:51:21 -08:00
Raymond Feng 554f62895b Merge pull request #150 from strongloop/feature/fix-auto-attach
Prevent autoAttach from overriding existing data source
2014-01-23 15:50:39 -08:00
Raymond Feng f08b9427ab Add a test for autoAttach 2014-01-23 15:27:31 -08:00
Raymond Feng 5586c54c49 Fix the Role ref to RoleMapping 2014-01-23 15:04:48 -08:00
Raymond Feng 224b500c3a Fix the Scope reference to models 2014-01-23 14:46:02 -08:00
Raymond Feng bb389ce209 Lookup the email model 2014-01-23 14:40:27 -08:00
Raymond Feng bcc7e68e0e Add lookback.getModelByType() and use it resolve model deps 2014-01-23 14:39:27 -08:00
Ritchie Martori 86a85291ac Fix user test race condition 2014-01-23 14:39:15 -08:00
Ritchie Martori a43d6004c1 Fix race condition where MyEmail model was not attached to the correct dataSource in tests 2014-01-23 14:25:54 -08:00
Raymond Feng d6a4230aed Fix the method args 2014-01-21 16:41:48 -08:00
Raymond Feng a5242a3b77 Fix the typo for the method name 2014-01-21 16:35:28 -08:00
Rand McKinney 9ab2d43bf5 Small change to text webhook. 2014-01-21 14:48:02 -08:00
Rand McKinney 1dbded56e1 Minor wording change for testing purposes. 2014-01-21 14:41:51 -08:00
Rand McKinney a802436f98 Fix capitalization and punctuation. 2014-01-21 14:14:13 -08:00
Rand McKinney 680a06bfec Minor wording cleanup. 2014-01-21 09:55:43 -08:00
Raymond Feng 8a114c635f Prevent autoAttach from overriding existing data source 2014-01-20 14:32:47 -08:00
Raymond Feng 73390a6be8 Merge tag 'v1.5.2'
1.5.2
2014-01-17 11:06:19 -08:00
Raymond Feng b1787e0b94 Merge branch 'release/1.5.2' into production 2014-01-17 11:06:11 -08:00
Raymond Feng 4c56be93c3 Bump version 2014-01-17 11:05:26 -08:00
Raymond Feng f887c3e623 Merge pull request #146 from strongloop/feature/DFD-48
Clean up loopback.js doc and add it to docs.json
2014-01-17 11:04:38 -08:00
Raymond Feng 5a6155e08e Clean up loopback.js doc and add it to docs.json 2014-01-17 10:40:41 -08:00
Raymond Feng 32bdce53ee Fix the jsdoc for loopback.getModel() 2014-01-17 10:23:59 -08:00
Raymond Feng c70ba01f6b Merge pull request #143 from strongloop/feature/fix-acl-model
Fix ACL model
2014-01-16 22:37:30 -08:00
Raymond Feng a6ff22c9c1 Make sure defaultPermission is checked 2014-01-16 15:05:10 -08:00
Raymond Feng 7212ebe805 Remove the dangling require 2014-01-16 09:12:52 -08:00
Raymond Feng d8647bb3c1 Make ACL model subclassing friendly 2014-01-16 08:50:50 -08:00
Miroslav Bajtoš 2b2d869763 Merge branch 'master' into production
Bring in recent API doc fixes.
2014-01-15 14:50:50 +01:00
Miroslav Bajtoš f155ba46c7 Merge pull request #132 from strongloop/feature/move-app-doc-to-jsdox
Move the documentation of app object to jsdox
2014-01-14 23:59:06 -08:00