From 430665c6c8fde47ab73e06e2f841cbbf53d89551 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Wed, 4 Sep 2024 13:42:23 -0400 Subject: [PATCH] Apply settings from recent DAB features No-Issue Special var to satify linter with long name Remove the reverse sync setting temporarily --- galaxy_ng/app/dynaconf_hooks.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/galaxy_ng/app/dynaconf_hooks.py b/galaxy_ng/app/dynaconf_hooks.py index 4dafeecba6..f56326e720 100755 --- a/galaxy_ng/app/dynaconf_hooks.py +++ b/galaxy_ng/app/dynaconf_hooks.py @@ -29,6 +29,10 @@ logger = logging.getLogger(__name__) +DAB_SERVICE_BACKED_REDIRECT = ( + "ansible_base.resource_registry.utils.service_backed_sso_pipeline.redirect_to_resource_server" +) + def post(settings: Dynaconf) -> Dict[str, Any]: """The dynaconf post hook is called after all the settings are loaded and set. @@ -148,6 +152,7 @@ def configure_keycloak(settings: Dynaconf) -> Dict[str, Any]: "social_core.pipeline.user.user_details", "galaxy_ng.app.pipelines.user_role", "galaxy_ng.app.pipelines.user_group", + DAB_SERVICE_BACKED_REDIRECT, ) # Set external authentication feature flag @@ -262,7 +267,8 @@ def configure_socialauth(settings: Dynaconf) -> Dict[str, Any]: 'galaxy_ng.social.pipeline.user.create_user', 'social_core.pipeline.social_auth.associate_user', 'social_core.pipeline.social_auth.load_extra_data', - 'social_core.pipeline.user.user_details' + 'social_core.pipeline.user.user_details', + DAB_SERVICE_BACKED_REDIRECT ] return data