Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: OAuth authentication requires session support #111

Open
macbroadcast opened this issue Mar 8, 2015 · 1 comment
Open

Error: OAuth authentication requires session support #111

macbroadcast opened this issue Mar 8, 2015 · 1 comment

Comments

@macbroadcast
Copy link

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants