-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TOTP Doesn't Work on Amazon.com Key #937
Comments
I was able to get this working by converting the "totp:" key-value pair to an otpauth URI. There may still be a bug here because I didn't have a problem with any other key, and I don't think it was user error. |
@ajgrf Have you tried making sure the URL doesn't have anything after (And possibly only has the secret parameter?) I'm seeing really weird behavior too. |
Yes, before I converted it to an |
From what I can understand, it looks like it's the yaml library that is not able to find they totp key in the "yaml" document. It returns an empty document. I am not done yet investigating. When printing out the real error from the yaml library you get ~ Key not found error. |
I was able to make this work with 1.8.2 pre-built binary. In the yaml format. Edit your token for this format : ---
totp: yourtokenhere The trick that made it work for me is the Then |
I think this issue was about getting WRONG codes, rather than no codes. My issue with this wound up being that I was using a script to export OTPs from Authy and it was including extra query parameters in the otpauth:// URL that were causing invalid codes to be generated. It took me forever to figure this out. I wound up finding it via process of elimination. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@ajgrf thanks converting "totp:" key-value pair to an otpauth URI worked for me. I have the same issue on gopass 1.9.2. |
Confirming the otpauth URI workaround generates a correct code, and the totp: SECRET will generate a wrong code. |
Summary
gopass totp amazon.com
fails even though it works with all of my other accounts. The error given isError: No OTP entry found for amazon.com: illegal base32 data at input byte 48
, as though something is wrong with the key even though there isn't. My current workaround is to runoathtool --totp=sha1 --base32 $(gopass amazon.com totp)
.The key does seem to be a different size than my other accounts, which may be causing the issue. When base32-encoded it is 52 characters long.
Steps To Reproduce
gopass totp amazon.com
Expected behavior
It should give me a 6 digit totp pin.
Environment
The text was updated successfully, but these errors were encountered: