readium / readium-js-viewer

👁 ReadiumJS viewer: default web app for Readium.js library
BSD 3-Clause "New" or "Revised" License
550 stars 186 forks source link

Readium with Protected EPubs #698

Closed mahag closed 6 years ago

mahag commented 6 years ago

Is there a way to give readium-js-viewer index.html page a protected epub that has a password of it? Is this solution available? I am currently using it over unprotected epubs. And what is Readium LCP? could it be related ?

danielweck commented 6 years ago

Readium LCP is probably not suited for your application (online / cloud reader): https://www.edrlab.org/readium/readium-lcp/

danielweck commented 6 years ago

The current code does not support password-protected EPUBs (ZIP archives). This is the code where the underlying zip library is used to inflate / decompress resource streams: https://github.com/readium/readium-js/blob/develop/js/epub-fetch/zip_resource_fetcher.js The underlying zip library is: https://gildas-lormeau.github.io/zip.js/

danielweck commented 6 years ago

For an online reader, I would recommend using web techniques to protect access to specific material (e.g. user authentication to gain credentials into a content server subsystem)