Permalink
Browse files

Replaced all occurrences of `callbackUri` with newer `callbackPath` f…

…or oauth module and facebook module.
  • Loading branch information...
1 parent d17c924 commit a4758e328c8ce21610390d980239ffe3a9f06fa9 @bnoguchi committed Apr 5, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −1 lib/facebook.js
  2. +2 −2 lib/oauth.js
  3. +1 −0 lib/sequence.js
View
@@ -11,7 +11,7 @@ oauthModule.submodule('facebook')
.getAuthUri( function (req, res) {
var oauth = this.oauth
, authUri = oauth.getAuthorizeUrl({
- redirect_uri: this.myHostname() + this.callbackUri()
+ redirect_uri: this.myHostname() + this.callbackPath()
, scope: this.scope()});
return authUri;
})
View
@@ -48,7 +48,7 @@ everyModule.submodule('oauth')
.getAuthUri( function (req, res) {
var oauth = this.oauth
, authUri = oauth.getAuthorizeUrl({
- redirect_uri: this.myHostname() + this.callbackUri()
+ redirect_uri: this.myHostname() + this.callbackPath()
});
return authUri;
})
@@ -63,7 +63,7 @@ everyModule.submodule('oauth')
.getTokens( function (code) {
var p = new Promise();
this.oauth.getOAuthAccessToken(code,
- {redirect_uri: this.myHostname() + this.callbackUri()},
+ {redirect_uri: this.myHostname() + this.callbackPath()},
function (err, accessToken, refreshToken) {
if (err) return p.error(err);
p.fulfill(accessToken, refreshToken);
View
@@ -45,6 +45,7 @@ MaterializedSequence.prototype = {
return args;
}, []);
// Apply the step logic
+ console.log(this.module);
ret = block.apply(this.module, args);
// Convert return value into a Promise

0 comments on commit a4758e3

Please sign in to comment.