Skip to content

Commit

Permalink
Try some defaults.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner committed Sep 13, 2024
1 parent 760eeca commit 14f60a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion galaxy_ng/app/dynaconf_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,13 @@ def configure_authentication_backends(settings: Dynaconf, data: Dict[str, Any])

# default data
# backends = settings.get("AUTHENTICATION_BACKENDS", [])
backends = data.get("AUTHENTICATION_BACKENDS", [])
backends = settings.get("AUTHENTICATION_BACKENDS", [])

# merge in backends set by the previous hooks ...
if (default_list := data.get("AUTHENTICATION_BACKENDS")) is not None:
for item in default_list:
if item not in backends:
backends.append(item)

# Load preset data
preset_name = settings.get("AUTHENTICATION_BACKEND_PRESET")
Expand Down

0 comments on commit 14f60a7

Please sign in to comment.