Error Failed To Find Request Token In Session
Contents |
Sign in Pricing failed to find request token in session linkedin Blog Support Search GitHub This repository Watch internaloautherror: failed to obtain request token 13 Star 241 Fork 97 jaredhanson/passport-twitter Code Issues 16 Pull requests 1
Passport Internaloautherror Failed To Obtain Access Token
Projects 0 Wiki Pulse Graphs New issue Error: failed to find request token in session #12 Open nicola opened
Twitter Error Failed To Find Request Token In Session
this Issue Jun 18, 2012 · 55 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 29 participants and others nicola commented Jun 18, 2012 Here is my error. Some passport twitter oauth2 of the users experience this others not, or sometime they do, some times not, and that's quite frustrating since I generally loose 30/40 users per day :) 2012-06-18T19:40:01+00:00 app[web.1]: Error: failed to find request token in session
2012-06-18T19:40:01+00:00 app[web.1]: at Strategy.
2012-06-18T19:40:01+00:00 app[web.1]: at Strategy.authenticate (/app/node_modules/passport-twitter/lib/passport-twitter/strategy.js:82:40)
2012-06-18T19:40:01+00:00 app[web.1]: at callbacks (/app/node_modules/express/lib/router/index.js:272:11)
2012-06-18T19:40:01+00:00 app[web.1]: at Passport.authenticate (/app/node_modules/passport/lib/passport/middleware/authenticate.js:153:14)
2012-06-18T19:40:01+00:00 app[web.1]: at param (/app/node_modules/express/lib/router/index.js:246:11)
2012-06-18T19:40:01+00:00 app[web.1]: at pass (/app/node_modules/express/lib/router/index.js:253:5)
2012-06-18T19:40:01+00:00 app[web.1]: at Context.next (/app/node_modules/express/node_modules/connect/lib/http.js:204:15)
2012-06-18T19:40:01+00:00 app[web.1]: at Router._dispatch (/app/node_modules/express/lib/router/index.js:280:4)
2012-06-18T19:40:01+00:00 app[web.1]: at Object.handle (/app/node_modules/express/lib/router/index.js:45:10)
2012-06-18T19:40:01+00:00 app[web.1]: at Context.
here
Passport Twitter Example
for a quick overview of the site passport-google-oauth example Help Center Detailed answers to any questions you might have Meta Discuss passport.initialize() middleware not in use the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more https://github.com/jaredhanson/passport-twitter/issues/12 about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each http://stackoverflow.com/questions/16346458/error-failed-to-find-request-token-in-session other. Join them; it only takes a minute: Sign up Error: failed to find request token in session up vote 16 down vote favorite 2 I found a few issues on the main passport repo, however, I think this primarily pertains to this specific strategy as I'm able to successfully authenticate using the passport-google-oauth strategy. Error: failed to find request token in session at Strategy.OAuthStrategy.authenticate (/home/glug/application/node_modules/passport-dropbox/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth.js:124:54) at attempt (/home/glug/application/node_modules/passport/lib/passport/middleware/authenticate.js:243:16) at Passport.authenticate (/home/glug/application/node_modules/passport/lib/passport/middleware/authenticate.js:244:7) at callbacks (/home/glug/application/node_modules/express/lib/router/index.js:161:37) at param (/home/glug/application/node_modules/express/lib/router/index.js:135:11) at pass (/home/glug/application/node_modules/express/lib/router/index.js:142:5) at Router._dispatch (/home/glug/application/node_modules/express/lib/router/index.js:170:5) at Object.router (/home/glug/application/node_modules/express/lib/router/index.js:33:10) at Context.next (/home/glug/application/node_modules/express/node_modules/connect/lib/proto.js:190:15) at Context.actions.pass (/home/glug/application/node_modules/passport/lib/passport/context/http/actions.js:77:8) I am using redis as the session store, however, even after eliminating that, it's still failing with the identical error messa
here for a quick overview of http://stackoverflow.com/questions/23295662/passport-twitter-error-failed-to-find-request-token-in-session the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the failed to company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million error failed to programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Getting “failed to find request token in session” while trying to integrate linkedin login via passport linkedin up vote 0 down vote favorite I am getting the following error while trying to integrate linkedin login via passport linkedin: Error: Failed to find request token in session at Strategy.OAuthStrategy.authenticate (C:\jobninja\facebookauth\node_modules\passport-linkedin\node_modules\passport-oauth1\lib\strategy.js:142:54) at Strategy.authenticate (C:\jobninja\facebookauth\node_modules\passport-linkedin\lib\strategy.js:118:40) at attempt (C:\jobninja\facebookauth\node_modules\passport\lib\middleware\authenticate.js:348:16) at authenticate (C:\jobninja\facebookauth\node_modules\passport\lib\middleware\authenticate.js:349:7) at Layer.handle [as handle_request] (C:\jobninja\facebookauth\node_modules\express\lib\router\layer.js:95:5) at next (C:\jobninja\facebookauth\node_modules\express\lib\router\route.js:131:13) at Route.dispatch (C:\jobninja\facebookauth\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (C:\jobninja\facebookauth\node_modules\express\lib\router\layer.js:95:5) at C:\jobninja\facebookauth\node_modules\express\lib\router\index.js:277:22 at Function.process_params (C:\jobninja\facebookauth\node_modules\express\lib\router\index.js:330:12) at next (C:\jobninja\facebookauth\node_modules\express\lib\router\index.js:271:10) at C:\jobninja\facebookauth\node_modules\connect-flash\lib\flash.js:21:5 at Layer.handle [as handle_request] (C:\jobninja\facebookauth\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (C:\jobninja\facebookauth\node_modules\express\lib\router\inde
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Passport-Twitter - Error: Failed to find request token in session up vote 5 down vote favorite 2 I am using passport-twitter to set up a twitter connect on my site. Users can connect by clicking on 'login' or on 'add new item'. The only difference between the 2 is that if they click on add new item, a modal window is supposed to open once theyre logged in. To know on button they click, I store the url in req.session.referrer: // route for twitter authentication and login app.get('/auth/twitter', function(req, res, next){ req.session.referrer = req.url; console.log(req.session); passport.authenticate('twitter')(req, res, next); }); app.get('/auth/twitter/new', function(req, res, next){ req.session.referrer = req.url; console.log(req.session); passport.authenticate('twitter')(req, res, next); }); // handle the callback after twitter has authenticated the user app.get('/auth/twitter/callback', function(req, res, next){ var options = { successRedirect : '/twitter-user/signin', failureRedirect : '/' }; console.log(req.session); if (req.session.referrer && req.session.referrer.indexOf('new') > -1) options.successRedirect = '/twitter-user/new'; passport.authenticate('twitter', options)(req, res, next) }); Everything works fine in my development environment but once online I get this error message: Express 500 Error: Failed to find request token in session at Strategy.OAuthStrategy.authenticate (/app/node_modules/passport-twitter/node_modules/passport-oauth1/lib/strategy.js:142:54) ... My settings are set up properly in Twitter. Here is what I get with the logs: For the request: { cookie: { path: '/', _expires: null, originalMaxAge: null, httpOnly: true }, passport: {}, referrer: '/auth/twitter' } For the callback: { cookie: { path: '/', _expires: null, originalMaxAge: null, httpOnly: true }, passport: {} } Maybe it could be due to subdomain problem ( http://example.com vs http://www.example.com) as I don't have the pb locally. How can I fix this? Man