janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.72k stars 1.33k forks source link

Help with OPDS and reverse proxy authentication? #2711

Closed PriamX closed 1 year ago

PriamX commented 1 year ago

Describe the bug/problem I am unable to authenticate any users other than 'admin' for the OPDS catalog. I'm using Nginx proxy in front of calibre-web for https, authentication is using the Organizr-auth API so users are known by Calibe-Web via X-WEBAUTH-USER, and this works well for the web interface; all users can access it using their Organizr creds. The URL is essentially https://myserv.mydomain.com/calibre-web, when using OPDS I configure the URL as "https://myserv.mydomain.com/calibre-web/opds/" and this works well using the 'admin' username and testing with an iOS app called MapleRead CX. However, using any other username, it does not work. I've also tested just using a browser from a PC to the URL. The error in the log is essentially:

[2023-03-03 19:26:27,268] WARN {cps.opds:492} OPDS Login failed for user "Username" IP-address: xxx.xxx.xxx.xxx

Environment:

Thank you for any guidance!

OzzieIsaacs commented 1 year ago

Seems to be a duplicate of: https://github.com/janeczku/calibre-web/issues/2399, please update to the newest nightly version (there should be a docker version of it)

PriamX commented 1 year ago

Oh, sure is a duplicate. Thanks. I searched before posting, sorry I missed it.