diff --git a/docs/configuration/optional-settings.md b/docs/configuration/optional-settings.md index dc15ed4da..4015badf4 100644 --- a/docs/configuration/optional-settings.md +++ b/docs/configuration/optional-settings.md @@ -319,7 +319,7 @@ NetBox can be configured to support remote user authentication by inferring user Default: `'utilities.auth_backends.RemoteUserBackend'` -Python path to the custom [Django authentication backend]() to use for external user authentication, if not using NetBox's built-in backend. (Requires `REMOTE_AUTH_ENABLED`.) +Python path to the custom [Django authentication backend](https://docs.djangoproject.com/en/stable/topics/auth/customizing/) to use for external user authentication, if not using NetBox's built-in backend. (Requires `REMOTE_AUTH_ENABLED`.) --- diff --git a/netbox/utilities/middleware.py b/netbox/utilities/middleware.py index 8e2b1993b..8141be53f 100644 --- a/netbox/utilities/middleware.py +++ b/netbox/utilities/middleware.py @@ -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):