tubearchivist/tubearchivist/home/src/ta/auth.py

11 lines
353 B
Python
Raw Normal View History

2023-09-15 18:32:15 +00:00
from django.conf import settings
from django.contrib.auth.middleware import PersistentRemoteUserMiddleware
class HttpRemoteUserMiddleware(PersistentRemoteUserMiddleware):
"""This class allows authentication via HTTP_REMOTE_USER which is set for
example by certain SSO applications.
"""
header = settings.TA_AUTH_PROXY_USERNAME_HEADER