mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Remote auth cleanup
This commit is contained in:
parent
0dc3a72912
commit
8c6d35645d
@ -319,7 +319,7 @@ NetBox can be configured to support remote user authentication by inferring user
|
|||||||
|
|
||||||
Default: `'utilities.auth_backends.RemoteUserBackend'`
|
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`.)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -37,7 +37,10 @@ class RemoteUserMiddleware(RemoteUserMiddleware_):
|
|||||||
Custom implementation of Django's RemoteUserMiddleware which allows for a user-configurable HTTP header name.
|
Custom implementation of Django's RemoteUserMiddleware which allows for a user-configurable HTTP header name.
|
||||||
"""
|
"""
|
||||||
force_logout_if_no_header = False
|
force_logout_if_no_header = False
|
||||||
header = settings.REMOTE_AUTH_HEADER
|
|
||||||
|
@property
|
||||||
|
def header(self):
|
||||||
|
return settings.REMOTE_AUTH_HEADER
|
||||||
|
|
||||||
|
|
||||||
class APIVersionMiddleware(object):
|
class APIVersionMiddleware(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user