Skip to content
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

Use the --cred or --login options in order to perform the auth login to Safari. Aborting... #291

Open
holzkohlengrill opened this issue Oct 7, 2021 · 8 comments
Labels

Comments

@holzkohlengrill
Copy link

Since a while I get the following error:

[-] Logging into Safari Books Online...
[-] Successfully authenticated.
[*] Retrieving book info...
[#] API: [+] Use the `--cred` or `--login` options in order to perform the auth login to Safari.
[!] Aborting...

It seems that the authentication was successful but the script is complaining anyway about it.
Any suggestions/ideas?

@mawis
Copy link

mawis commented Oct 17, 2021

I just got the same error message, but found the problem wasn't this project, but that I did use an invalid book ID. (I thought I have the book id in the clipboard, but instead I had my password in it.)

@holzkohlengrill
Copy link
Author

For me that is not the case.
I had one ID for testing I reuse all the time and that one also stopped working.

@julio213180
Copy link

julio213180 commented Nov 4, 2021

hi guys can you help? I had to reformat my pc, an reinstall python 3.7 and safaribooks and created a new account on safari.
and when i run the safaribooks i`m getting the unable to perform auth login to Safari Books Online
invalid credentials but the account is OK, i can log into the website with it

[04/Nov/2021 11:53:39] ** Welcome to SafariBooks! **
[04/Nov/2021 11:53:39] Logging into Safari Books Online...
[04/Nov/2021 11:53:42] Login: unable to perform auth login to Safari Books Online.
[*] Details:
Unexpected error!
[04/Nov/2021 11:53:42] Last request done:
URL: https://www.oreilly.com/member/auth/login/
DATA: None
OTHERS: {'json': {'email': '[email protected]', 'password': 'XXXXXXXXXXX', 'redirect_uri': 'https://api.oreilly.com%2Fapi%2Fv1%2Fauth%2Fopenid%2Fauthorize%2F%3Fclient_id%3D235442%26redirect_uri%3Dhttps%3A%2F%2Flearning.oreilly.com%2Fcomplete%2Funified%2F%26state%3D6Lz1O9gkXXXXXXXXXXXXXXXsB0px%26response_type%3Dcode%26scope%3Dopenid%2Bprofile%2Bemail'}}

400
Server: istio-envoy
Vary: Accept, Cookie, Origin,Accept, Accept-Encoding, Authorization, Cookie,Accept, Accept-Encoding, Authorization, Cookie
Content-Type: application/json
strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains
surrogate-key: groot groot-api, groot_frontend_ds groot_frontend_ds-pages
x-envoy-upstream-service-time: 349
x-content-type-options: nosniff, nosniff, nosniff
Allow: POST, OPTIONS
x-frame-options: DENY
referrer-policy: same-origin
Content-Length: 37
Expires: Thu, 04 Nov 2021 14:53:42 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Thu, 04 Nov 2021 14:53:42 GMT
Connection: close

{"credentials":"invalid_credentials"}

@julio213180
Copy link

Never mind guys, i was typing the command wrong it seems that there s a space after de .com and the colon for the password.
it works fine now :)

@asalamon74
Copy link

@holzkohlengrill What is the id you use for testing?

This part of the code tries to read info from https://learning.oreilly.com/api/v1/book/PUTTHEIDHERE/ Can you access this page?

@holzkohlengrill
Copy link
Author

@holzkohlengrill
Copy link
Author

Any update?

@holzkohlengrill
Copy link
Author

Any update so far?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants