Coder Social home page Coder Social logo

Comments (9)

mkb79 avatar mkb79 commented on July 16, 2024

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

from audible.

kennedn avatar kennedn commented on July 16, 2024

Hiya,

I've attached an example of the html returned for a CVF prompt:

cvf.zip

Happy to test any code fixes / provide additional information if it's helpful.

Regards,

from audible.

mkb79 avatar mkb79 commented on July 16, 2024

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.

from audible.

mkb79 avatar mkb79 commented on July 16, 2024

Can you try this branch if this solves the new approval alert.

from audible.

kennedn avatar kennedn commented on July 16, 2024

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):
File "authenticator.py", line 13, in
auth.get_activation_bytes("/home/kennedn/Documents/AudibleAuthenticator/AudibleActivation4.sys")
File "/home/kennedn/Documents/AudibleAuthenticator/Audible/src/audible/auth.py", line 386, in get_activation_bytes
return get_ab(self, filename)
File "/home/kennedn/Documents/AudibleAuthenticator/Audible/src/audible/activation_bytes.py", line 100, in get_activation_bytes
player_token = get_player_token(auth)
File "/home/kennedn/Documents/AudibleAuthenticator/Audible/src/audible/activation_bytes.py", line 39, in get_player_token
player_token = extract_token_from_url(resp.url)[0]
File "/home/kennedn/Documents/AudibleAuthenticator/Audible/src/audible/activation_bytes.py", line 18, in extract_token_from_url
return query_dict["playerToken"]

But after reverting activation_bytes.py to the one present in the master branch I was able to login and pull them down.

from audible.

mkb79 avatar mkb79 commented on July 16, 2024

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.

from audible.

mkb79 avatar mkb79 commented on July 16, 2024

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.

from audible.

kennedn avatar kennedn commented on July 16, 2024

Oh crap I forgot to mention, there was a small typo on one of the lines, soup should be login_soup:

url = soup.find_all("a", class_="a-link-normal")[1]["href"]

As for the activation_bytes.py. I got the error from a fresh LoginAuthenticator auth.

from audible.

mkb79 avatar mkb79 commented on July 16, 2024

Thank you. I solved this issue. I wrote it with my iPhone, so I didn’t saw this.

from audible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.