File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,13 @@ def read_secret(secret_name):
203
203
# this setting is derived from the installed location.
204
204
SCRIPTS_ROOT = os .environ .get ('SCRIPTS_ROOT' , '/etc/netbox/scripts' )
205
205
206
+ # Remote authentication support
207
+ REMOTE_AUTH_ENABLED = os .environ .get ('REMOTE_AUTH_ENABLED' , 'False' ).lower () == 'true'
208
+ REMOTE_AUTH_BACKEND = os .environ .get ('REMOTE_AUTH_BACKEND' , 'netbox.authentication.RemoteUserBackend' )
209
+ REMOTE_AUTH_HEADER = os .environ .get ('REMOTE_AUTH_HEADER' , 'HTTP_REMOTE_USER' )
210
+ REMOTE_AUTH_AUTO_CREATE_USER = os .environ .get ('REMOTE_AUTH_AUTO_CREATE_USER' , 'True' ).lower () == 'true'
211
+ REMOTE_AUTH_DEFAULT_GROUPS = list (filter (None , os .environ .get ('REMOTE_AUTH_DEFAULT_GROUPS' , '' ).split (' ' )))
212
+
206
213
# Time zone (default: UTC)
207
214
TIME_ZONE = os .environ .get ('TIME_ZONE' , 'UTC' )
208
215
You can’t perform that action at this time.
0 commit comments