This commit is contained in:
Tobias Lindenberg
2021-01-10 14:36:10 +01:00
parent 67581c7fa4
commit 6ef06b2650
3 changed files with 17 additions and 7 deletions

View File

@ -1,5 +1,7 @@
from django.contrib.auth.middleware import RemoteUserMiddleware
from os import getenv
from django.contrib.auth.middleware import RemoteUserMiddleware
class CustomRemoteUser(RemoteUserMiddleware):
header = getenv('PROXY_HEADER', 'HTTP_REMOTE_USER')