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
passport-twitter + restify --> "message": "OAuth authentication requires session support" #90
Comments
You have no doubt solved it now, but I had this problem and it turned out my app.get('/auth/twitter', passport.authenticate('twitter')) route was inside the exports.init function.... |
I have the same problem. I was able to make passport-facebook to work properly with my restify API, but passport-twitter returns "{"message":"OAuth authentication requires session support"}" |
It turned out that that similar code works with facebook because passport-facebook uses OAuth 2.0 and passport-twitter uses OAuth 1 which requires session. So the problem is that we are not using session in our APIs. |
So how do you solved that finally? |
I decided not to use twitter login for the moment |
Still having the problem on Sep 2014 |
OAuth 1 requires sessions, which is what the error is stating. It is not possible to make it work securely without sessions, so closing this issue as won't fix. |
I have passport-facebook working but with passport-twitter I get the following error:
{
"message": "OAuth authentication requires session support"
}
Does anyone have a working example using passport-twitter and restify.
BTW, my app is targeted as an API so I would prefer not to use sessions at all.
Thanks,
David
The text was updated successfully, but these errors were encountered: