Permalink
Browse files

Pass next to first step of sequences in other modules

  • Loading branch information...
1 parent 8660396 commit 4b03a3501bff54edcfdcc5262c9273b8ffe27cdd @bnoguchi committed Apr 22, 2012
Showing with 9 additions and 9 deletions.
  1. +2 −2 lib/modules/box.js
  2. +1 −1 lib/modules/everymodule.js
  3. +2 −2 lib/modules/openid.js
  4. +4 −4 lib/modules/password.js
View
@@ -15,7 +15,7 @@ everyModule.submodule('box')
'the link a user follows, whereupon you redirect them to Box.net -- e.g., "/auth/box"')
.step('getTicket')
.description('asks Box.net for a unique ticket for each user of your app')
- .accepts('req res')
+ .accepts('req res next')
.promises('ticket')
.step('redirectToBoxAuth')
.description('redirects the user to https://www.box.net/api/1.0/auth/<ticket>')
@@ -25,7 +25,7 @@ everyModule.submodule('box')
'the callback path that Box.net redirects to after an authorization result - e.g., "/auth/box/callback"')
.step('extractAuthToken')
.description('extracts auth_token from the url that Box.net redirects to after authorization')
- .accepts('req res')
+ .accepts('req res next')
.promises('authToken')
.step('getSession')
.description('extracts the session from the incoming request')
@@ -339,7 +339,7 @@ everyModule
})
.get('logoutPath')
.step('handleLogout')
- .accepts('req res')
+ .accepts('req res next')
.promises(null)
.logoutPath('/logout')
.handleLogout( function (req, res) {
@@ -24,13 +24,13 @@ everyModule.submodule('openid')
'the link a user follows, whereupon you kick off the OpenId auth process - e.g., "/auth/openid"')
.step('sendToAuthenticationUri')
.description('sends the user to the providers openid authUrl')
- .accepts('req res')
+ .accepts('req res next')
.promises(null)
.get('callbackPath',
'the callback path that the 3rd party Openid provider redirects to after an authorization result - e.g., "/auth/openid/callback"')
.step('verifyAttributes')
.description('verifies the return attributes')
- .accepts('req res')
+ .accepts('req res next')
.promises('userAttributes')
.step('getSession')
.accepts('req')
@@ -153,16 +153,16 @@ everyModule.submodule('password')
.get('getLoginPath', "the login page's uri path.")
.step('displayLogin')
- .accepts('req res')
+ .accepts('req res next')
.promises(null)
.displayLogin(renderLogin)
.post('postLoginPath', "the uri path that the login POSTs to. Same as the 'action' field of the login <form />.")
.step('extractLoginPassword')
- .accepts('req res')
+ .accepts('req res next')
.promises('login password')
.step('authenticate')
- .accepts('login password req res')
+ .accepts('login password')
.promises('userOrErrors')
.step('interpretUserOrErrors')
.description('Pipes the output of the step `authenticate` into either the `user` or `errors` param')
@@ -215,7 +215,7 @@ everyModule.submodule('password')
.get('getRegisterPath', "the registration page's uri path.")
.step('displayRegister')
- .accepts('req res')
+ .accepts('req res next')
.promises(null)
.displayRegister( function (req, res) {
return renderRegister.apply(this, arguments);

0 comments on commit 4b03a35

Please sign in to comment.