Skip to content

Commit

Permalink
Merge pull request #1059 from NeodymiumFerBore/feat/remote-auth-backe…
Browse files Browse the repository at this point in the history
…nd-as-list

Map REMOTE_AUTH_BACKEND env var to list
  • Loading branch information
tobiasge authored Aug 28, 2023
2 parents f703bba + 12af423 commit 4d54bb1
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 @@ -275,7 +275,7 @@ def _environ_get_and_map(variable_name: str, default: str | None = None, map_fn:

# Remote authentication support
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_BACKEND = _environ_get_and_map('REMOTE_AUTH_BACKEND', 'netbox.authentication.RemoteUserBackend', _AS_LIST)
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', 'False', _AS_BOOL)
REMOTE_AUTH_DEFAULT_GROUPS = _environ_get_and_map('REMOTE_AUTH_DEFAULT_GROUPS', '', _AS_LIST)
Expand Down

0 comments on commit 4d54bb1

Please sign in to comment.