mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-27 01:36:11 -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
|
# Set up authentication backends
|
||||||
AUTHENTICATION_BACKENDS = [
|
if isinstance(REMOTE_AUTH_BACKEND, list) or isinstance(REMOTE_AUTH_BACKEND, tuple):
|
||||||
REMOTE_AUTH_BACKEND,
|
AUTHENTICATION_BACKENDS = [x for x in REMOTE_AUTH_BACKEND]
|
||||||
'netbox.authentication.ObjectPermissionBackend',
|
else:
|
||||||
]
|
AUTHENTICATION_BACKENDS = [REMOTE_AUTH_BACKEND]
|
||||||
|
AUTHENTICATION_BACKENDS.append('netbox.authentication.ObjectPermissionBackend')
|
||||||
|
|
||||||
# Time zones
|
# Time zones
|
||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
|
Loading…
Reference in New Issue
Block a user