Enhancement: support remote user auth directly against API (DRF) (#5386)

This commit is contained in:
shamoon authored and GitHub committed 2024-01-16 23:26:05 +00:00
1 parent 2e2362e2df
commit 6db9e292ba
4 files changed
+112 -11

No files matched your search

+8
View File
@@ -47,3 +47,11 @@ class HttpRemoteUserMiddleware(PersistentRemoteUserMiddleware):
"""
header = settings.HTTP_REMOTE_USER_HEADER_NAME
class PaperlessRemoteUserAuthentication(authentication.RemoteUserAuthentication):
"""
REMOTE_USER authentication for DRF which overrides the default header.
"""
header = settings.HTTP_REMOTE_USER_HEADER_NAME