Commit Graph

10 Commits

Author SHA1 Message Date
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 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
Raymond Feng a35d2b7365 rename asteroid to loopback 2013-07-16 10:42:47 -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 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