TandoorRecipes/recipes/middleware.py
2020-06-03 10:16:17 -05:00

4 lines
166 B
Python

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