mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
Add the possibility to customize the remote user header name
Inspired by the discussion here https://github.com/jonaswinkler/paperless-ng/discussions/639#discussion-3242017 it is worthwhile to be able to customize the header name that is used for authentication as its name is not really standardized.
This commit is contained in:
parent
5fea7f2bc4
commit
97f3c214e8
3 changed files with 13 additions and 3 deletions
|
|
@ -33,5 +33,4 @@ class HttpRemoteUserMiddleware(RemoteUserMiddleware):
|
|||
""" This class allows authentication via HTTP_REMOTE_USER which is set for
|
||||
example by certain SSO applications.
|
||||
"""
|
||||
|
||||
header = 'HTTP_REMOTE_USER'
|
||||
header = settings.HTTP_REMOTE_USER_HEADER_NAME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue