Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Support reverse proxies using PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME and PAPERLESS_ENABLE_HTTP_REMOTE_USER together with basic auth #429

Open
danieldietsch opened this issue Jun 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@danieldietsch
Copy link

Description

Paperless allows you to use basic auth together with PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME to trust usernames provided in your http header.
I am using this feature with apache as reverse proxy, where I essentially do

RequestHeader unset Authorization
RequestHeader set HAHAHA %{REMOTE_USER}s

and as paperless env var

PAPERLESS_ENABLE_HTTP_REMOTE_USER=true
PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME="HTTP_HAHAHA"

This allows me to pass usernames via http to paperless, and paperless just accepts them as authenticated. I was using https://github.com/bauerj/paperless_app before, but since my last paperless-ngx update, this app does not work anymore (and it seems like development there is dead).

Unfortunately, I cannot use paperless-mobile, as it does not support this paperless feature.

It would be very nice if you would support BasicAuth in this way.

@danieldietsch danieldietsch added the enhancement New feature or request label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant