13256 ignore REMOTE_AUTH_BACKEND if REMOTE_AUTH_ENABLED is not set

This commit is contained in:
Arthur 2023-08-08 20:10:39 +07:00
parent f5a1f83f9f
commit e8da97e4df

View File

@ -418,6 +418,9 @@ TEMPLATES = [
]
# Set up authentication backends
if not REMOTE_AUTH_ENABLED:
# ignore setting if REMOTE_AUTH_ENABLED not set
REMOTE_AUTH_BACKEND = 'netbox.authentication.RemoteUserBackend'
if type(REMOTE_AUTH_BACKEND) not in (list, tuple):
REMOTE_AUTH_BACKEND = [REMOTE_AUTH_BACKEND]
AUTHENTICATION_BACKENDS = [