mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 17:26:10 -06:00
Add suppport for REMOTE_AUTH_BACKEND as iterable
This commit is contained in:
parent
8d25d7812c
commit
17eb2a9a2d
@ -396,10 +396,11 @@ TEMPLATES = [
|
||||
]
|
||||
|
||||
# Set up authentication backends
|
||||
AUTHENTICATION_BACKENDS = [
|
||||
REMOTE_AUTH_BACKEND,
|
||||
'netbox.authentication.ObjectPermissionBackend',
|
||||
]
|
||||
if isinstance(REMOTE_AUTH_BACKEND, list) or isinstance(REMOTE_AUTH_BACKEND, tuple):
|
||||
AUTHENTICATION_BACKENDS = [x for x in REMOTE_AUTH_BACKEND]
|
||||
else:
|
||||
AUTHENTICATION_BACKENDS = [REMOTE_AUTH_BACKEND]
|
||||
AUTHENTICATION_BACKENDS.append('netbox.authentication.ObjectPermissionBackend')
|
||||
|
||||
# Time zones
|
||||
USE_TZ = True
|
||||
|
Loading…
Reference in New Issue
Block a user