Commit Graph

36 Commits

Author SHA1 Message Date
Rob Halff 4ebf10ae0d add missing semicolons 2014-10-22 18:47:52 +02: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
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
crandmck d8c6f9d962 Update JSDoc 2014-06-04 17:42:18 -07:00
Miroslav Bajtoš bfb154d445 Modify `loopback.rest` to include `loopback.token`
Make `loopback.rest` self-contained, so that authentication works
out of the box.

    var app = loopback();
    app.enableAuth();
    app.use(loopback.rest());

Note that cookie parsing middleware is not added, users have to
explicitly configure that if they want to store access tokens
in cookies.

Modify `loopback.token` to skip token lookup when the request already
contains `accessToken` property. This is in line with other
connect-based middleware like `cookieParser` or `json`.
2014-05-21 15:22:36 +02:00
Raymond Feng 37646fa008 Allows options to be passed to strong-remoting 2014-02-19 15:14:31 -08:00
Ritchie Martori 9fc8e197ee Start to move md to jsdoc 2014-01-14 10:03:47 -08:00
Ritchie Martori 5cd71cee6b Use loopback.AccessToken as default 2013-12-02 17:16:43 -08:00
Ritchie Martori 2c36935404 Fix missing assert 2013-12-02 16:37:42 -08:00
Ritchie Martori fd7dd7e4a2 Add status middleware 2013-11-19 12:54:30 -08:00
Miroslav Bajtos 7d60b2dea6 Add loopback.urlNotFound() middleware.
The middleware should be used as the last 3-parameter middleware (regular
request handles) before any 4-parameter middleware (error handlers).

This way a request to an URL not handled by any middleware is converted to
a 404 error that can be handled by whatever error handling strategy is
configured in the application.

See senchalabs/connect#954 for more details.
2013-11-19 20:27:49 +01:00
Ritchie Martori 1bb95607b9 Update session / token documentation 2013-11-14 15:42:37 -08:00
Ritchie Martori 64d8ff986b Add loopback.token() middleware 2013-11-14 13:01:47 -08:00
Ritchie 77a137eca6 Rename Session => AccessToken 2013-11-14 10:05:13 -08:00
Ritchie Martori 0f3ad00086 Remove auth middleware and passport until adding in acl and strategies 2013-07-28 10:11:29 -07:00
Ritchie 35cafff877 Swagger integration 2013-07-25 16:24:00 -07:00
Ritchie Martori 345435e7b2 Rename sl-remoting to strong-remoting 2013-07-19 12:07:04 -07:00
Ritchie 7c7667151a Manually merge rest adapter 2013-07-17 14:29:43 -07:00
Ritchie a2308cbc1c Merge 0.9 into master 2013-07-17 14:08:14 -07:00
Raymond Feng 2f773115fe rename asteroid to loopback 2013-07-16 11:02:06 -07:00
Raymond Feng a35d2b7365 rename asteroid to loopback 2013-07-16 10:42:47 -07:00
Ritchie Martori 8387a68b85 Initial users 2013-07-03 13:40:13 -07:00
Ritchie Martori a4fb3012bf Only build a sl remoting handler when a model is added to the app. 2013-07-01 10:41:52 -07:00
Ritchie d358ab674c Remove sl-module-loader dependencies 2013-06-17 08:18:31 -07:00
Ritchie 654a89147c Merge branch 'refactor/api'
Conflicts:
	lib/application.js
2013-06-17 08:01:22 -07:00
Ritchie Martori bcef4c88cf Remove node modules from ignore, removie configure middleware 2013-06-07 13:12:46 -07:00
Ritchie 583f87a72b Fix sharedCtor 2013-06-05 09:35:41 -07:00
Ritchie Martori d7df71c686 Add hasMany to defined models 2013-05-24 15:09:13 -07:00
Ritchie 22a5db7b53 Add rest middleware 2013-05-24 07:59:59 -07:00
Ritchie Martori bd2bf60467 Change references for module renames 2013-05-17 17:47:23 -07:00
Ritchie Martori 7318acb75e Merge in models and data sources built from config to the app. 2013-05-01 12:34:31 -07:00
Ritchie Martori 463c2d8d56 Rename module loader 2013-04-19 17:50:48 -07:00
Ritchie Martori 64520fa67a Add api for building module loaders externally. 2013-04-19 14:10:59 -07:00
Ritchie Martori b9a239db32 Refactor various naming conventions. 2013-04-17 17:43:00 -07:00
Ritchie Martori 7c2e73f53a Initial working store, model, connection, and collection 2013-04-10 10:55:13 -07:00
Ritchie Martori 2a0f68e434 init 2013-04-09 09:02:36 -07:00