mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-21 12:52:21 -06:00
Closes #5033: Support backward compatibility for REMOTE_AUTH_BACKEND
This commit is contained in:
@@ -142,6 +142,13 @@ if type(REMOTE_AUTH_DEFAULT_PERMISSIONS) is not dict:
|
||||
)
|
||||
except TypeError:
|
||||
raise ImproperlyConfigured("REMOTE_AUTH_DEFAULT_PERMISSIONS must be a dictionary.")
|
||||
# Backward compatibility for REMOTE_AUTH_BACKEND
|
||||
if REMOTE_AUTH_BACKEND == 'utilities.auth_backends.RemoteUserBackend':
|
||||
warnings.warn(
|
||||
"RemoteUserBackend has moved! Please update your configuration to:\n"
|
||||
" REMOTE_AUTH_BACKEND='netbox.authentication.RemoteUserBackend'"
|
||||
)
|
||||
REMOTE_AUTH_BACKEND = 'netbox.authentication.RemoteUserBackend'
|
||||
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user