raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.21k stars 2.9k forks source link

Authy - Twilio app #13092

Closed Priveng20 closed 2 months ago

Priveng20 commented 2 months ago

Extension

https://www.raycast.com/guga4ka/authy

Raycast Version

1.77.1

macOS Version

14.5

Description

No valid OTP

I am getting the following error, I have changed my backup key, uninstalled the extension and reinstalled it and set it up from scratch again but still having the same issue

Steps To Reproduce

Just trying to access the extension

Current Behaviour

No response

Expected Behaviour

No response

raycastbot commented 2 months ago

Thank you for opening this issue!

🔔 @guga4ka @gdsmith @pernielsentikaer @LitoMore you might want to have a look.

💡 Author and Contributors commands The author and contributors of `guga4ka/authy` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
gdsmith commented 2 months ago

It really is worth double checking your backup password as that is almost 100% likely to be the issue here.

exarus commented 2 months ago

It really is worth double checking your backup password as that is almost 100% likely to be the issue here.

Double checked everything.

  1. Uninstalled Raycast extension
  2. Changed Authy Backup password to a new one (on my Authy Mobile)
  3. Removed Raycast extension from list of accepted devices (on my Authy Mobile)
  4. Installed Raycast extension (on my Mac)
  5. Filled Authy ID and new backup password (on my Mac)
  6. Paired Authy Mobile with Authy Raycast extension
  7. Found Twitch token in the list of Authy Raycast extension tokens (it's the only non-corrupted token, since it's non-standard TOTP) and pressed "Sync" button (Command+R on Mac).
  8. Tokens remain corrupted. Nothing helps.
Priveng20 commented 2 months ago

It really is worth double checking your backup password as that is almost 100% likely to be the issue here.

Double checked everything.

  1. Uninstalled Raycast extension
  2. Changed Authy Backup password to a new one (on my Authy Mobile)
  3. Removed Raycast extension from list of accepted devices (on my Authy Mobile)
  4. Installed Raycast extension (on my Mac)
  5. Filled Authy ID and new backup password (on my Mac)
  6. Paired Authy Mobile with Authy Raycast extension
  7. Found Twitch token in the list of Authy Raycast extension tokens (it's the only non-corrupted token, since it's non-standard TOTP) and pressed "Sync" button (Command+R on Mac).
  8. Tokens remain corrupted. Nothing helps.

Yep same here.

It was working perfectly fine for me today and just stopped all of a sudden it stopped

StirStudios commented 2 months ago

It really is worth double checking your backup password as that is almost 100% likely to be the issue here.

Double checked everything.

  1. Uninstalled Raycast extension
  2. Changed Authy Backup password to a new one (on my Authy Mobile)
  3. Removed Raycast extension from list of accepted devices (on my Authy Mobile)
  4. Installed Raycast extension (on my Mac)
  5. Filled Authy ID and new backup password (on my Mac)
  6. Paired Authy Mobile with Authy Raycast extension
  7. Found Twitch token in the list of Authy Raycast extension tokens (it's the only non-corrupted token, since it's non-standard TOTP) and pressed "Sync" button (Command+R on Mac).
  8. Tokens remain corrupted. Nothing helps.

Same here.

Priveng20 commented 2 months ago

Hi @gdsmith any update on this?

I've gone through some of the other issues raised for this issue and tried some of the steps that worked for other users but I still have the same issue.

AndyMznc commented 2 months ago

Same problem as the previous users. All my items are corrupt, despite having tried to regenerate a new key several times and following the recommendations above

raycast authy corrupted

guga4ka commented 2 months ago

@Priveng20 @AndyMznc Authy has changed the way how OTP token keys encrypted, since this is a private API, no one has been notified. I'm currently trying to investigate how to make extension back on track.

Priveng20 commented 2 months ago

@guga4ka okay, thank you for the update

guga4ka commented 2 months ago

Authy added a new field key_derivation_iterations to the API response. We should use this for pbkdf2Key generation.

I'll push out a quick fix to unblock users, but heads up - it might slow down the extension a bit.

kolchurinvv commented 2 months ago

Using it is still a time saver vs using the app, especially now that the dedicated desktop has been shut down and the iPad optimized doesn't play well with auto tilers

gdsmith commented 2 months ago

@guga4ka I broke my OTP looking into this so have pushed a PR to fix along with a couple of tweaks #13152

guga4ka commented 2 months ago

@kolchurinvv I can't guarantee that Authy will not brake their API in future (after they drop desktop app it will really hard to explore their API). I guess i can add something like "export raw tokens" to be importing to the any other app.

@gdsmith nice, i've have quickly checked PR, gr8 job, exactly the same i've done, will drop my changes.

kolchurinvv commented 2 months ago

@guga4ka thanks for the effort it took to develop this and takes to maintain. and even if Authy breaks the api in the future, at least we've had a good thing for a while :)

Priveng20 commented 2 months ago

@guga4ka and @gdsmith , just updated the extension and it is working Thank you for the feedback and assistance

StirStudios commented 2 months ago

@Priveng20 thanks so much for the work and quick fix. The plugin now works just as it did before!

guga4ka commented 2 months ago

I think we good to close this issue. @gdsmith one more time, thx for your contribution.

@raycastbot close this issue

morfien101 commented 2 months ago

I was a bit confused by this so I will just comment here for the next person.

You need to updated to RayCast 1.7.1 (mine was out of date when I was trying to fix this), then remove the Authy as a plugin and reinstall it. Then re-setup your authy plugin.

@guga4ka Thank you 👍

gdsmith commented 2 months ago

You probably just needed to update Raycast and then the Authy plugin, the remove and reinstall should not be needed AFAIK.

morfien101 commented 2 months ago

I did that and it didn't work. I updated raycast and tried to just resync but no luck. At this point most my otps showed corrupted.

I guess milage may vary, but thats how I got mine to work again.

gdsmith commented 2 months ago

Did you check that the extension was on the latest version after you updated Raycast?

On Wed, 26 Jun 2024, 14:02 Randy Coburn, @.***> wrote:

I did that and it didn't work. I updated raycast and tried to just resync but no luck. At this point most my otps showed corrupted.

I guess milage may vary, but thats how I got mine to work again.

— Reply to this email directly, view it on GitHub https://github.com/raycast/extensions/issues/13092#issuecomment-2191638367, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG53F42UCYPVVJTQRKKWTLZJK3WRAVCNFSM6AAAAABJVZSOE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJRGYZTQMZWG4 . You are receiving this because you were mentioned.Message ID: @.***>

exarus commented 2 months ago

The token loading time is way too long after the update. It's like more than 8s. It's faster to take the phone and check out the token from it

guga4ka commented 2 months ago

@exarus Yeah, this was a downside of the quick fix made by @gdsmith. I'll try to refactor the extension over the weekend. Initially, I didn't write it very optimally. The problem here is that the decryption of the OTP seed is calculated every time the extension runs, instead of doing it during onboarding 🤷‍♂️

bduff9 commented 2 months ago

Just uninstalled and reinstalled this extension after getting the corrupted issue, however, it will not setup now. Every time I enter my account Id and backup password, I get an error that says "Attestation token is missing". I have double-checked the account Id and backup password several times.

guga4ka commented 2 months ago

@bduff9 nothing i can help with, seems like Authy killed desktop App and might kill API that has been using to retrieve your OTPs, here is a reddit post where users blame on the same problem. I will monitor the situation, but i din't find something useful at the moment.

kolchurinvv commented 2 months ago

Any suggestions for 2FA Authenticator apps alternatives that could also be worked into a Raycast extension?

guga4ka commented 2 months ago

@kolchurinvv my plan B is export all tokens from authy and import it to Bitwarden. Let's wait a bit for Authy statement, seems like not only 3rd party clients have this issue, but their own ipad app too. I will push the update to extension with export functionality so pls do not re-install extensions.