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
Redirects to twitter Sign In (authorize) page every time #32
Comments
I found that the problem occurs because my apps permissions are Read, Write and Access direct messages. Because of the direct messages access this type of app must first be authorized with I see that I suppose I could have two routes |
I'm experiencing this as well... The thing is, the edit:
It sounds like perhaps the person who is managing this twitter app has not specified this :) |
Here's how you overwrite the authentication and use authorization: https://github.com/coolaj86/node-twitter-demo/blob/master/app.js#L81 I explain it a little bit here: http://blog.coolaj86.com/articles/how-to-tweet-from-nodejs.html
Look at my code. You'll need to use both a TwitterAuthN strategy and a TwitterAuthZ strategy. |
I confirmed a while ago from the email from client, they had not in fact set up the twitter app with this enabled, but I have tried with a test app and have confirmed that it should operate as expected with this setting enabled. If you're still experiencing this, I don't know what to tell you, it may be a different problem. |
Are you using Direct Messages? If not, then you won't have the same problem that I'm experiencing. |
I've just created a sample app based closely on the example in the repo and it always asks the user to Sign In via twitter (as if authorizing the app for the first time).
Meaning that
GET /account
redirects toGET /authn/twitter
which does passport-twitter magic and calls back toGET /oauth/twitter/callback
which then redirects back toGET /account
. This happens every time, regardless of already having authorized the app and already being signed into twitter.Any thoughts on why this would happen?
The text was updated successfully, but these errors were encountered: