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
CVF code entry broken due to changes to Amazon Login #24
Comments
Hi, Thank you for opening this issue. I‘ve tried it around 20 times with disabled 2FA to login on my US and DE account. I don’t be asked for a cvf code or I get a mail with an activation link. So I can‘t replay your issue at this moment. It would be very helpful if you have the body of the html webpage which appears, when retrieving such a mail. Best regards |
Hiya, I've attached an example of the html returned for a CVF prompt: Happy to test any code fixes / provide additional information if it's helpful. Regards, |
Thank you, that helps a lot. I‘ve implement a routine to detect this type of approval alert. Now I will implement a function for a workaround. I will commit this when it’s ready. |
Can you try this branch if this solves the new approval alert. |
Confirmed working, thanks for the speedy response! Was able to make Amazon present the CVF prompt by changing my location with a VPN. Apologies for the delay, I encountered another bug with that specific branch that was throwing me off for a time. I am using the API to pull down the activation_bytes file from audible and was getting the following stacktrace: Traceback (most recent call last): But after reverting activation_bytes.py to the one present in the master branch I was able to login and pull them down. |
That sounds great that this is working for you. And I don’t thought to use a VPN to test it. Thanks for your hint! Because your other issue with the activation bytes (ab). You are requesting the ab after a fresh login with LoginAuthenticator or you are use the FileAuthenticator with credentials from a previous registered device. In last case it’s important to know one thing. The function to request the activation bytes uses website cookies to authenticate. If you register a device to one marketplace you will get the website cookies only for this top level domain range. So if you switch over to another marketplace, the website cookies don’t work for the new one. |
I‘ve solved the issue with v0.5.dev and requesting activation bytes. There where some errors when using website cookies retrieving from a fresh login with my auth_flow method. Website cookies from registered device worked fine. Thanks for this information. |
Oh crap I forgot to mention, there was a small typo on one of the lines, Line 242 in c7fbeeb
As for the activation_bytes.py. I got the error from a fresh LoginAuthenticator auth. |
Thank you. I solved this issue. I wrote it with my iPhone, so I didn’t saw this. |
It seems that Amazon has recently changed its Login Security such that the CVF code usually supplied via email to verify a new login has been replaced with a system that lets the user click a link and either allow or deny the login attempt.
This has broken the CVF flow in the Audible API:
Audible/src/audible/login.py
Lines 110 to 112 in a1a7041
The text was updated successfully, but these errors were encountered: