node.js - Error: failed to find request token in session -


i found few issues on main passport repo, however, think pertains specific strategy i'm able authenticate using passport-google-oauth strategy.

error: failed find request token in session     @ strategy.oauthstrategy.authenticate (/home/glug/application/node_modules/passport-dropbox/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth.js:124:54)     @ attempt (/home/glug/application/node_modules/passport/lib/passport/middleware/authenticate.js:243:16)     @ passport.authenticate (/home/glug/application/node_modules/passport/lib/passport/middleware/authenticate.js:244:7)     @ callbacks (/home/glug/application/node_modules/express/lib/router/index.js:161:37)     @ param (/home/glug/application/node_modules/express/lib/router/index.js:135:11)     @ pass (/home/glug/application/node_modules/express/lib/router/index.js:142:5)     @ router._dispatch (/home/glug/application/node_modules/express/lib/router/index.js:170:5)     @ object.router (/home/glug/application/node_modules/express/lib/router/index.js:33:10)     @ context.next (/home/glug/application/node_modules/express/node_modules/connect/lib/proto.js:190:15)     @ context.actions.pass (/home/glug/application/node_modules/passport/lib/passport/context/http/actions.js:77:8) 

i using redis session store, however, after eliminating that, it's still failing identical error message.

var dropboxstrategy = require('passport-dropbox').strategy;  app.configure(function(){   app.set('port', config.express.port);   app.use(express.favicon());   app.use(express.logger('dev'));   app.use(express.bodyparser());   app.use(express.methodoverride());   app.use(express.cookieparser());         app.use(express.session({ //        store: new redisstore({ client: redis}),         secret: config.express.secret         }));         app.use(passport.initialize());         app.use(passport.session());   app.use(app.router); });  passport.serializeuser(function(user, done) { //    console.log('serializing: ' + json.stringify(user));     done(null, user); });  passport.deserializeuser(function(obj, done) { //    console.log('deserializing: ' + obj);     done(null, obj); });  passport.use(new dropboxstrategy({     consumerkey: config.dropbox.key,     consumersecret: config.dropbox.secret,     callbackurl: config.dropbox.callbackurl   },   function(token, tokensecret, profile, done) {     // storage function     return done(null, profile);   } )); 

i'm happy try anything, i've filed issue on repo, think may i'm doing wrong rather wrong passport-dropbox repo.

... sigh. forgot changed subdomain. so, cookie wasn't readable because domain name different.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -