rickyrauch / Balloons.IO

Balloons.IO is a web multi-room chat server and client ready to use. It’s built with the help of node.JS, Express, Socket.IO and Redis. Balloons uses PassportJS for authentication with Twitter and Facebook
http://balloons.io
2.36k stars 491 forks source link

Error: OAuth authentication requires session support #111

Open macbroadcast opened 9 years ago

macbroadcast commented 9 years ago

hi, installed Balloons.IO on my site http://chat.let.de , but it seems the express version is deprecated , when i want to login with twitter, i got this error:

Error: OAuth authentication requires session support at Strategy.OAuthStrategy.authenticate (/root/Balloons.IO/node_modules/passport-twitter/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth.js:102:41) at Strategy.authenticate (/root/Balloons.IO/node_modules/passport-twitter/lib/passport-twitter/strategy.js:82:40) at attempt (/root/Balloons.IO/node_modules/passport/lib/passport/middleware/authenticate.js:243:16) at Passport.authenticate (/root/Balloons.IO/node_modules/passport/lib/passport/middleware/authenticate.js:244:7) at callbacks (/root/Balloons.IO/node_modules/express/lib/router/index.js:161:37) at param (/root/Balloons.IO/node_modules/express/lib/router/index.js:135:11) at pass (/root/Balloons.IO/node_modules/express/lib/router/index.js:142:5) at Router._dispatch (/root/Balloons.IO/node_modules/express/lib/router/index.js:170:5) at Object.router (/root/Balloons.IO/node_modules/express/lib/router/index.js:33:10) at Context.next (/root/Balloons.IO/node_modules/express/node_modules/connect/lib/proto.js:190:15) adding var session = require('express-session'); app.use(session({ secret: 'here-you-shoud-enter-your-secret' })); app.use(passport.session()); gives me an " Bad gateway" error in nginx. signing in with facebook gives no error but it does not work either.

Any help ? Thanks

cristiandouce commented 9 years ago

Check the passport dependencies versions. They must be outdated and some things may have change.