What endpoint are you using?

GET oauth/authenticate

What API version are you on?
1.1 and 2.0

Are you using a library or SDK? Which one?
No, rest API calls without library

What is the issue?
The oauth operations started to go in infinite loop. No idea what caused the issue, it started happening in the last 24 hours.
When the user is required to authenticate (using GET oauth/authenticate) the user gets the authorization page:


(As you can see the authorize workflow is triggered instead of authenticate workflow)

The user can never login to any app that uses that endpoint
Steps to reproduce the issue
Step 1: Login to any app that uses /oath/authenticate

What is the error message?
No error message, the user goes into an infinite loop of authorization

When did it start?
Jan 25, 2023 9:30am ET

What have you tried to troubleshoot?
Logging off from twitter then login again solved the problem sometimes (seems like cookie related?)

4 Likes

Here are the exact steps to reproduce:
1 Call POST /oauth/request_token
2. Send the user to https://api.twitter.com/oauth/authenticate with the parameter force_login
3. Do not enter the Twitter password to login, close the browser instance or navigate to any other website.
4. Try to login to any application using oauth/authenticate workflow (not necessarily the same app)
5. Notice the authorize workflow dialog is shown (not automatic authentication and redirection)
6. If user clicks “sign in” button, they will be stuck in an infinite loop of “sign in” dialog and authorization screen.

One more troubleshooting step:
7. Go to twitter.com
8. Delete the cookie named “_twitter_sess”.
9. The problem stops happening and user can use twitter authentication again.

We can’t expect the users to delete the cookie each time they get stuck

1 Like

Edit: Removed the part about losing my account as that has been recovered (and don’t want to distract from the main API bug)

1 Like

same issue

1 Like

Same issue for us as well.

Please go go like this tweet. Elon is taking requests for features & bug fixes and prioritizing them by number of likes. Maybe we can get some attention for this one.