Twidere-Android icon indicating copy to clipboard operation
Twidere-Android copied to clipboard

Getting authentication error. Can't find where/how to sign out and sign back in

Open GAferguson opened this issue 2 years ago • 144 comments

Check before submitting issue -- Thank you!

You can ignore this form if this issue is a feature request.

Expected behavior

Actual behavior

Steps to reproduce

Extra info

Android version: (version code here)

Network type:

  • [ ] Cellular
  • [x] Wi-Fi

App version: (version code here)

Build variant:

  • [x] Google
  • [ ] F-Droid

Micro-blogging service:

  • [x] Twitter
  • [ ] Fanfou
  • [ ] GNU Social / StatusNet
  • [ ] Mastodon

App settings:

  • [ ] Custom API
  • [ ] Custom consumer key/secrets
  • [ ] Official keys
  • [ ] Using Thumbor
  • [ ] Connected through proxy
  • [ ] Media preview enabled

GAferguson avatar Jan 13 '23 04:01 GAferguson

Same issue, can't log back in now

HiddenLeveI avatar Jan 13 '23 05:01 HiddenLeveI

same, my own custom API keys get rejected (because they dont have Elevated access?), default ones just do nothing. Please fix.

jonas1015119 avatar Jan 13 '23 06:01 jonas1015119

https://9to5google.com/2023/01/12/twitter-api-appears-to-be-down-breaking-tweetbot-and-third-party-clients/

sdvcrx avatar Jan 13 '23 06:01 sdvcrx

Use these keys from the TwidereX app:

ConsumerKey=wmtrtTaVOjUnH5pWQp4LDI5Qs
ConsumerSecret=E9Q9u2yK0COJae2tLcNEdY75OPA3bxqJiGZQztraHaQUtoI2cu

Qwerty-Space avatar Jan 14 '23 11:01 Qwerty-Space

This solves the problem, thank you!

fabioromeo avatar Jan 14 '23 12:01 fabioromeo

Unless I'm updating them wrong (likely) , the twidereX keys don't work for me 🙁

GONin3D avatar Jan 14 '23 15:01 GONin3D

Worked for me when (with each key) I deleted 'ConsumerKey=' and 'ConsumerSecret=', and used the rest of it.

umbellipher avatar Jan 14 '23 15:01 umbellipher

Got it! Had to update each, then try to add a new account, then authorized for my current account instead of creating a new one. It told me I was already logged in and everything loaded correctly.

GONin3D avatar Jan 14 '23 15:01 GONin3D

Thank you. This is the only useable twitter app for android

vanhoopstallion avatar Jan 14 '23 15:01 vanhoopstallion

You can always access Settings when signed out, and it's in there as an option. Glad it worked out.

umbellipher avatar Jan 14 '23 16:01 umbellipher

Use these keys from the TwidereX app:

ConsumerKey=wmtrtTaVOjUnH5pWQp4LDI5Qs
ConsumerSecret=E9Q9u2yK0COJae2tLcNEdY75OPA3bxqJiGZQztraHaQUtoI2cu

How exactly? Can you provide clarification, please?

DrAndiLowe avatar Jan 14 '23 18:01 DrAndiLowe

Use these keys from the TwidereX app:

ConsumerKey=wmtrtTaVOjUnH5pWQp4LDI5Qs
ConsumerSecret=E9Q9u2yK0COJae2tLcNEdY75OPA3bxqJiGZQztraHaQUtoI2cu

How exactly? Can you provide clarification, please?

What worked for me is:

  1. Go to Settings > Network > Avanced > Default API Settings
  2. Replace the consumer key and consumer secret with those above and save
  3. Go to Accounts and click the + in the top right
  4. Choose Twitter > User Settings
  5. Click Register, then the Sign In button, this should take you to an authorization page
  6. Go through the authorization steps
  7. Refresh your timelines

Granted, there's probably steps in this that you don't need to do or that may be faster since I'm not well-versed, but this specific set of steps had the correct amount of voodoo magic to get mine working.

GONin3D avatar Jan 14 '23 18:01 GONin3D

Use these keys from the TwidereX app:

ConsumerKey=wmtrtTaVOjUnH5pWQp4LDI5Qs
ConsumerSecret=E9Q9u2yK0COJae2tLcNEdY75OPA3bxqJiGZQztraHaQUtoI2cu

How exactly? Can you provide clarification, please?

What worked for me is:

  1. Go to Settings > Network > Avanced > Default API Settings
  2. Replace the consumer key and consumer secret with those above and save
  3. Go to Accounts and click the + in the top right
  4. Choose Twitter > User Settings
  5. Click Register, then the Sign In button, this should take you to an authorization page
  6. Go through the authorization steps
  7. Refresh your timelines

Granted, there's probably steps in this that you don't need to do or that may be faster since I'm not well-versed, but this specific set of steps had the correct amount of voodoo magic to get mine working.

Thanks! Not sure what I did, but I'm able to login to Twitter with Twidere (no 'X') using the Twidere X keys. I basically stabbed at my phone for a good 5 minutes, trying random stuff, until I got the browser login screen for Twitter. Then everything was working. Adding this for others to demonstrate that with perseverance this method works.

DrAndiLowe avatar Jan 14 '23 18:01 DrAndiLowe

Use these keys from the TwidereX app:

ConsumerKey=wmtrtTaVOjUnH5pWQp4LDI5Qs
ConsumerSecret=E9Q9u2yK0COJae2tLcNEdY75OPA3bxqJiGZQztraHaQUtoI2cu

Great success. Thank you very much QS for the assist.

I noticed that I was unable to log in with 2FA set up so I had to revert, and then reinstate after authentication.

Also, every time a login failed the API key/secret would revert back to the prior input. I noticed that I had to verify on each login attempt that the "new" TwidereX key/secret were being used.

Best of luck to anyone out there I had a dark, dark 72 hours of having to communicate with my family.

abelincoln8 avatar Jan 15 '23 15:01 abelincoln8

Thank you for the new keys. Do you know if I can use my own keys if I generate them through my developer portal ?

civodul999 avatar Jan 15 '23 21:01 civodul999

Do you know if I can use my own keys if I generate them through my developer portal ?

I can confirm this is true, though you may have to make sure to create a "standalone app" that uses v1.1 of the API. Possibly I fat-fingered something, or copied from the wrong field or such, when I tried at first with creating an "elevated" app from the Twitter developer dashboard, but for whatever reason it didn't work for me (a bit surprising since the developer dashboard implies that an "elevated" app supports both v1.1 and v2 of the API, so one would assume it would be backwards compatible, but perhaps expecting convenient behaviour from Twitter's API is foolish!)

EDIT: My v1.1 API key gives me an error indicating my app is read-only, I found Twitter's developer console oddly confusing though so I mighta just screwed something up. (The TwidereX key works fine for me, to join the chorus.)

Note too that you don't necessarily have to dive in and change the default API settings, you can also just enter the consumer secret and key when adding an account---there's a button up in the top-right, to the left of the settings button, in the Sign In page within Twidere when adding an account.

keithzg avatar Jan 15 '23 23:01 keithzg

I've updated the remote API config for testing, it should resolve the issue for now, but there is no guarantee that Twitter will not block this API Key.

Tlaster avatar Jan 16 '23 03:01 Tlaster

I've just started getting "Network Error: Empty Data" issues whenever I try to like a tweet. Everything else still seems to work, any ideas? (using the Twidere X keys)

jonas1015119 avatar Jan 16 '23 12:01 jonas1015119

I've just started getting "Network Error: Empty Data" issues whenever I try to like a tweet. Everything else still seems to work, any ideas? (using the Twidere X keys)

Same here, does anybody have any solutions? Everything works for me but not liking tweets

EliasGagnef avatar Jan 16 '23 18:01 EliasGagnef

Trying to retweet also leads to a 'hit a daily limit' error.

It seems possibly that too many people are using the Twidere X keys compared to what their limits will allow.

It feels like the best solution will be for each person to get their own keys via a fake app in the developer portal.

fusenuk avatar Jan 16 '23 21:01 fusenuk

I think that you are totally right @fusenuk, I followed the instructions from the Talon Github repository to get my own keys and it totally worked! Here's the instructions everyone:

To get your Twitter API key, go through these steps:

1: Sign in on their developer site (https://apps.twitter.com/)

2: Click Create New App.

3: Choose a name, description, and website. These are all required and unique to your app, but it makes no difference what you call them. Anything will work here.

4: For the callback URL, you can do anything you like, but to have it work out of the box, use: http://talonfortwitter.com (since we are using Twidere I guess you can put any website you want instead, but it doesn't matter)

5: If you want a different one (stressing that it really DOES NOT matter..) then change it in the LoginFragment

6: Read and accept their Rules of the Road, then Create your Twitter Application After it is created, you can change the icon and add some other info from the settings page.

7: You NEED to go to the Permissions page of the app and select the Read, Write and Access direct messages option, or else you won't be able to do anything but view your timeline.

Now go into your "new app", go into the "Keys and tokens" section and copy the API Key and Secret into Twidere using the steps from @GONin3D, I hope this helps someone :)

EliasGagnef avatar Jan 17 '23 00:01 EliasGagnef

Hi everyone,

I face the same issue on Twidere on my Android phone too ("incorrect api settings") so I wanted to try the above mentioned trick but I can't create a developer account visibly: I am stuck with the following message "There was a problem completing your request: User must have a verified phone number on file prior to submitting application."

I use Twidere for privacy purposes so ending up giving my phone number to Twitter to create a developer account doesn't make any sense to me.

Also, I'm not sure if it's related or not, but when I click on the 'Create an App' button, I have the following message:

"You may continue managing your existing Apps but if you would like to create new Apps or use Twitter premium APIs, please apply for a developer account.

As a developer platform, our first responsibility is to our users: to provide a place that supports the health of conversation on Twitter. To continue to prevent misuse of our platform, we have introduced a few new requirements for developers."

I didn't try using the Twidere X API keys as people are reporting here it's not always working great and chances are the use of these publicly available keys will be limited in the future as more and more people are using them (from what I've understood by reading above).

Can someone help me and tell me the best course of action? And also what's "wrong" with using Twidere-X instead of Twidere?

Thanks a lot guys, I am not a developer myself and I have limited understanding of all development related things, I'm just concerned about my privacy, so your help is precious and means a lot to me.

FritesMoules avatar Jan 22 '23 01:01 FritesMoules

Do you know if I can use my own keys if I generate them through my developer portal ?

I can confirm this is true, though you may have to make sure to create a "standalone app" that uses v1.1 of the API. Possibly I fat-fingered something, or copied from the wrong field or such, when I tried at first with creating an "elevated" app from the Twitter developer dashboard, but for whatever reason it didn't work for me (a bit surprising since the developer dashboard implies that an "elevated" app supports both v1.1 and v2 of the API, so one would assume it would be backwards compatible, but perhaps expecting convenient behaviour from Twitter's API is foolish!) EDIT: My v1.1 API key gives me an error indicating my app is read-only, I found Twitter's developer console oddly confusing though so I mighta just screwed something up. (The TwidereX key works fine for me, to join the chorus.) Note too that you don't necessarily have to dive in and change the default API settings, you can also just enter the consumer secret and key when adding an account---there's a button up in the top-right, to the left of the settings button, in the Sign In page within Twidere when adding an account.

EDIT--- Managed to get it working by applying for elevated and using a Staging set application, probably my inexperience missed something though and that is unnecessary steps.

Looks like it only works if you have elevated access. What do you mean by Staging set application? My Elevated Application got denied because "It looks like your proposed use case may be in violation of one or more sections of the Developer Agreement and Policy, Automation Rules, and/or the Twitter Rules." Anyone have any success, what did you write? These are my current settings and I get the 453 Error when I go to the Authorization screen. image)

jonas1015119 avatar Jan 22 '23 05:01 jonas1015119

Getting Error 32 "could not authenticate you" with twidere x keys this morning.

Edit: Twidere X looks to be locked out with the same keys

vanhoopstallion avatar Jan 22 '23 06:01 vanhoopstallion

Yeah, it appears they've now blocked Twidere X

The new Twitter rules say 'no third party clients'

So it makes sense that we will now start to see nearly all consumer API keys start to get blocked for any largely used client

Worrying one of the posts above makes it look like they are also being selective on who can create new custom API keys as they don't want people using them for clients either.

fusenuk avatar Jan 22 '23 09:01 fusenuk

I can confirm that the "use Twidere X keys workaround" doesn't work anymore. In my case that trick stopped working roughly 16 hours ago.

Inrumpo avatar Jan 22 '23 11:01 Inrumpo

I don't know why I didn't think of this earlier, but the official Twitter API Keys work!

  1. put in the Twitter for iPad(!) API Key (https://gist.github.com/shobotch/5160017)
  2. change authentication to XAuth
  3. put in your details (username and password) in the Twidere interface. (need to have 2 Factor disabled)

Worked on the first try for me, you might need to remove your existing account or reinstall Twidere if you get errors.

jonas1015119 avatar Jan 22 '23 15:01 jonas1015119

I don't know why I didn't think of this earlier, but the official Twitter API Keys work! Just put in the Twitter for Android API Key (https://gist.github.com/shobotch/5160017), change authentication to XAuth, put in your details and refresh. Worked on the first try for me, and you notification column will display likes for once!

Not working for me. Says the account has been suspended the moment I try to login (it hasn't).

Musketeiro avatar Jan 22 '23 15:01 Musketeiro

My account locked after attempting to switch over :(

GONin3D avatar Jan 22 '23 15:01 GONin3D

@Musketeiro thats odd, I tried both the Android and iPad keys. Android worked and can RT/Fav but I get an authentication error when trying to tweet, iPad Key works flawlessly.

jonas1015119 avatar Jan 22 '23 20:01 jonas1015119