n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
42.38k stars 5.5k forks source link

Twitter OAuth not working after migration from twitter.com to x.com #9738

Open 0nl1n1n opened 3 weeks ago

0nl1n1n commented 3 weeks ago

Bug Description

Since Twitter full migration to x.com, oAuth authentication of new account do not work anymore.

To Reproduce

On a non-connected account (not connected on twitter.com; not connected on x.com) Create a new X.com credential. Click on "Connect my account" Enter X credentials Errors appear. CleanShot 2024-06-14 at 08 40 57

CleanShot 2024-06-14 at 08 40 50

CleanShot 2024-06-14 at 08 41 30

Expected behavior

oAuth to go through new domain Being able to connect and have the call back toward N8N.

Operating System

22.04

n8n Version

1.44.2

Node.js Version

18.16

Database

SQLite (default)

Execution mode

main (default)

Joffcom commented 2 weeks ago

Hey @0nl1n1n,

We should probably update the URL to use x.com rather than Twitter.com but I have just given this a quick test and it appears to be working.

In your test case are you making a new account through the authentication window or using an existing one? If you are making a new account Twitter / X will likely remove the url parameters we send which would result in an error. Looking at the Error though Twitter / X is saying that you didn't give the app access which sounds like it might not be an n8n bug.

Joffcom commented 2 weeks ago

NODE-1425 is the internal ticket for changing the URL from twitter.com to x.com for the authentication.

0nl1n1n commented 1 week ago

@Joffcom It's an existing account. recently made, but pre existing, not premium. I'm using brave as a browser, but there were no problem with the other accounts I own.