1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Remote auth cleanup

This commit is contained in:
Jeremy Stretch
2020-03-10 16:56:57 -04:00
parent 0dc3a72912
commit 8c6d35645d
2 changed files with 5 additions and 2 deletions

View File

@ -37,7 +37,10 @@ class RemoteUserMiddleware(RemoteUserMiddleware_):
Custom implementation of Django's RemoteUserMiddleware which allows for a user-configurable HTTP header name.
"""
force_logout_if_no_header = False
header = settings.REMOTE_AUTH_HEADER
@property
def header(self):
return settings.REMOTE_AUTH_HEADER
class APIVersionMiddleware(object):