Skip to content

Commit

Permalink
Merge pull request #1043 from NeodymiumFerBore/fix/honor-default-conf…
Browse files Browse the repository at this point in the history
…ig-value

Set REMOTE_AUTH_AUTO_CREATE_USER default to False
  • Loading branch information
tobiasge authored Aug 16, 2023
2 parents dd0c0b7 + ec60363 commit f703bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configuration/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def _environ_get_and_map(variable_name: str, default: str | None = None, map_fn:
REMOTE_AUTH_ENABLED = _environ_get_and_map('REMOTE_AUTH_ENABLED', 'False', _AS_BOOL)
REMOTE_AUTH_BACKEND = environ.get('REMOTE_AUTH_BACKEND', 'netbox.authentication.RemoteUserBackend')
REMOTE_AUTH_HEADER = environ.get('REMOTE_AUTH_HEADER', 'HTTP_REMOTE_USER')
REMOTE_AUTH_AUTO_CREATE_USER = _environ_get_and_map('REMOTE_AUTH_AUTO_CREATE_USER', 'True', _AS_BOOL)
REMOTE_AUTH_AUTO_CREATE_USER = _environ_get_and_map('REMOTE_AUTH_AUTO_CREATE_USER', 'False', _AS_BOOL)
REMOTE_AUTH_DEFAULT_GROUPS = _environ_get_and_map('REMOTE_AUTH_DEFAULT_GROUPS', '', _AS_LIST)
# REMOTE_AUTH_DEFAULT_PERMISSIONS = {}

Expand Down

0 comments on commit f703bba

Please sign in to comment.