We've moved discussions to Discord

Devise Oath Twitter - Authentication failure

tommersio
I'm having trouble with Twitter Oath in my Jumpstart app.

When I try to Sign up with Twitter or connect an existing account in production, the app throws an error.

My Heroku log looks like this:
[2022-01-08T19:54:04.796370+00:00 app[web.1]: D, [2022-01-08T19:54:04.796338 #15] DEBUG -- omniauth: (twitter) Request phase initiated.2022-01-08T19:54:04.957969+00:00 app[web.1]: E, 

[2022-01-08T19:54:04.957893 #15] ERROR -- omniauth: (twitter) Authentication failure! 403 Forbidden: OAuth::Unauthorized, 403 Forbidden2022-01-08T19:54:04.958621+00:00 app[web.1]: I, 

[2022-01-08T19:54:04.958554 #15]  INFO -- : [be64d579-1fa8-433c-80ed-518ead956813] Processing by Users::OmniauthCallbacksController#failure as HTML
I have the following URL's set up in the Twitter developer portal

Callback URI / Redirect URL
https://www.mydomain.com/users/auth/twitter
https://www.mydomain.com/users/auth/twitter/callback
https://www.mydomain.com/auth/twitter
https://www.mydomain.com/auth/twitter/callback

And I've added my API key and API_secret to my production.yml file.

Any idea what can be wrong? Or how I can troubleshoot this?


Notifications
You’re not receiving notifications from this thread.