Login API inconsistencies #7076
Labels
Lead: @jimchamp
Issues overseen by Jim (Front-end Lead, BookNotes) [managed]
Priority: 3
Issues that we can consider at our leisure. [managed]
Type: Bug
Something isn't working. [managed]
I've been trying to use the Login API with json, but the documentation seems out of date:
https://openlibrary.org/dev/docs/restful_api
This:
To login to Open Library programatically, a POST request must be send to /account/login with username and password must be passed as a JSON dictionary.
doesn't seem accurate, based on these comments:openlibrary/openlibrary/plugins/upstream/account.py
Line 308 in 5f55b17
I'm able to login using IA access and secret keys:
curl -i -d '{"access": "XXX", "secret": "XXX"}' -X POST https://openlibrary.org/account/login.json
but not with username/email and password:
curl -i -d '{"username": "XXX", "password": "XXX"}' -X POST https://openlibrary.org/account/login.json
Is this expected? Or am I missing something?
Also, where can I create an infogami account?
Thanks!
The text was updated successfully, but these errors were encountered: