internetarchive / bookserver

Archive.org OPDS Bookserver - A standard for digital book distribution
GNU Affero General Public License v3.0
122 stars 16 forks source link

OPDS Bookserver should support BasicAuth Lending + Web-view link to borrow #49

Open mekarpeles opened 6 years ago

mekarpeles commented 6 years ago

Web-view

Aldiko reader uses the web-view approach where clicking borrow link sends the user offsite to login to a partner service + to fulfill the book.

Here's an example @hadriengardeur put together for the "web-view" link case: http://feedbooks.github.io/opds-test-catalog/demo/openlibrary.atom

http://opds-spec.org/acquisition/borrow is used to specify a acquisition/borrow link (which sends the user to openlibrary [or alternativelyIA] to login + fulfill) <link rel="http://opds-spec.org/acquisition/borrow" type="text/html" href="https://openlibrary.org/books/OL9499030M/Hegira/borrow">

Basic Auth

Alternatively, SimplyE has the user enter their credentials when they first select a source library. These credentials are stored in app and then passed along with borrow requests to a different acquisition link (?) https://docs.google.com/document/d/1-_0HHt664bDjybtCauBJXUSDXiT-Clg1sZUVNxHyLjw/edit#heading=h.vr02rhcxbns3

@bfalling @hornc

mekarpeles commented 6 years ago

More @ http://opds-spec.org/specs/opds-catalog-1-1-20110627/#Acquisition_Feeds

mekarpeles commented 6 years ago

Tagging @hornc

gautierchomel commented 1 year ago

I'm running into the same issue while browsing the opds feed thru Thorium Reader. I can't find a way to borrow from the application nor to get access to any book borrowed from the web page.

At least a mention of books subjects to acquisition policy should appear so one can discriminate and choose a book available without authentication.

gautierchomel commented 1 year ago

Update, correct feed with authentication available at https://archive.org/services/opds or opds://archive.org/services/opds (direct link not authorized by github).