TandoorRecipes/recipes/middleware.py
2020-06-04 07:51:43 -05:00

6 lines
189 B
Python

from django.contrib.auth.middleware import RemoteUserMiddleware
from os import getenv
class CustomRemoteUser(RemoteUserMiddleware):
header = getenv('PROXY_HEADER', 'HTTP_REMOTE_USER')