Mango icon indicating copy to clipboard operation
Mango copied to clipboard

[Bug Report] OPDS not working with "auth_proxy_header_name" set up

Open totof-l opened this issue 2 years ago • 6 comments

Describe the bug OPDS not working with "auth_proxy_header_name" set up.

To Reproduce I have installed a new docker instance of Mango. Without setting up "auth_proxy_header_name" in the config file, I can add http://IP:PORT/opds to the KyBook 3 app. But when I change the config file with this line : auth_proxy_header_name: "X-WEBAUTH-USER" , it doesn't work.

Expected behavior Access to the Mango OPDS feed from the KyBook 3 iOS app.

Environment (please complete the following information):

  • OS: UnRAID (docker)
  • Mango Version v0.24.0

Additional context

I also use Calibre-Web with Auth Proxy and OPDS, and I don't have this issue.

Screenshot : Error

totof-l avatar Dec 03 '21 16:12 totof-l

Did you set up your reverse proxy? If KyBook directly accesses Mango with IP + port it probably doesn't go through your reverse proxy, and therefore not setting the X-WEBAUTH-USER header.

hkalexling avatar Dec 04 '21 04:12 hkalexling

Initially, I was trying with the HTTPS URL (so with a reverse proxy) of my main Mango instance. So same issue with both IP:PORT or HTTPS. As a workaround, i‘ve set another instance of Mango just for OPDS, without the header. It's working with both IP:PORT and HTTPS.

totof-l avatar Dec 04 '21 11:12 totof-l

Having a similar issue. I get a 404 when I try to go to /opds. Any ideas?

haygoodhtpc avatar Apr 13 '22 05:04 haygoodhtpc

@haygoodhtpc Oops the route was accidentally deleted in a recent commit. I will do a bug fix release soon.

hkalexling avatar Apr 13 '22 10:04 hkalexling

@haygoodhtpc The 404 issue has been fixed in v0.26.2

hkalexling avatar Apr 18 '22 10:04 hkalexling

confirmed working at of v0.26.2!

haygoodhtpc avatar Apr 20 '22 04:04 haygoodhtpc