mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:49:38 +00:00
11 lines
353 B
Python
11 lines
353 B
Python
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
|