mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Allow authentication via HTTP_REMOTE_USER
This commit is contained in:
parent
db4b621631
commit
7b56ad9dad
4 changed files with 39 additions and 6 deletions
|
|
@ -112,6 +112,13 @@ if DEBUG:
|
|||
'paperless.auth.AngularApiAuthenticationOverride'
|
||||
)
|
||||
|
||||
ENABLE_HTTP_REMOTE_USER = __get_boolean("PAPERLESS_ENABLE_HTTP_REMOTE_USER")
|
||||
|
||||
if ENABLE_HTTP_REMOTE_USER:
|
||||
REST_FRAMEWORK['DEFAULT_AUTHENTICATION_CLASSES'].append(
|
||||
'paperless.auth.HttpRemoteUserAuthentication'
|
||||
)
|
||||
|
||||
MIDDLEWARE = [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'whitenoise.middleware.WhiteNoiseMiddleware',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue