alfred-workflow-gauth icon indicating copy to clipboard operation
alfred-workflow-gauth copied to clipboard

It doesn't work with lengthy secrets like amazon.com

Open JaBERx opened this issue 6 years ago • 9 comments

This is a sample of Amazon 2FA code:

WIJS DMAK 3K2W 5T2T 5VOS M5MN 7LN5 XDSB B5SJ QS6N G2JW Z27W QOUQ

Amazon is the second website that I see it has a such lengthy 2FA code, And why I try to add it for gauth, It says Incorrect 2FA code.

JaBERx avatar Jul 06 '18 16:07 JaBERx

I just encountered the same issue

DieterHolvoet avatar Jan 26 '20 13:01 DieterHolvoet

Doesn't work with TeamViewer either, e.g. IFA5 TXHU 4X6E 5LGL 57U7 L62D

DieterHolvoet avatar Jan 26 '20 13:01 DieterHolvoet

Doesn't work with Drupal.org either, e.g. MBE3R2JKENSPWIA25ZJZCAP5

DieterHolvoet avatar Jan 26 '20 14:01 DieterHolvoet

The fix only enables support for a EpicGames 2FA one. But the ones for the Debians PAM Google Authentificator and Amazons 2FA doesn't work for me.

  • Amazons is written with 52 characters in length [A-Z0-9] but filled to 56 characters by =.
  • EpicGames is written with 52 characters in length [A-Z0-9]. (works only with fix base32 padding)
  • The Debian PAMs one has 26 characters in length [A-Z0-9] but filled to 32 characters by =.

I've tried with and without fix, with and without = filling at the end of the string.

My OTP Auth App in my phone, watch and mac has the same secrets but there they working without any issues.

nemeth-it avatar Apr 04 '21 10:04 nemeth-it

Same issue with box.com: 4B5J RGOT 2GLQ M27F 2DDB

tbrodbeck avatar Apr 22 '21 06:04 tbrodbeck

Some of these may be fixed by using the newest version which hasn't been updated in this repo yet: https://github.com/moul/alfred-workflow-gauth/pull/27

AndrewRayCode avatar Nov 29 '21 17:11 AndrewRayCode

@AndrewRayCode I guess the PR you are referring to is #27, thanks for working on that, I hope someone can confirm it

rodrigo-arias avatar Nov 29 '21 18:11 rodrigo-arias

The latest build of the workflow in the above PR enabled me to use Stripe's 2fa, which on the older version failed due to "invalid padding." Anyone can repeat what i did in the above PR, check out this repo, run the buld.sh script, and then install the newest workflow created on disk

AndrewRayCode avatar Nov 29 '21 21:11 AndrewRayCode

I can confirm that it's working, recompile develop was enough, at least with my secret key from SpinupWP. Seems that the .alfredworkflow file is out of date

rodrigo-arias avatar Nov 29 '21 22:11 rodrigo-arias