Skip to content

Commit

Permalink
Merge branch 'master' into SIMPLE_AAP_COMPOSE
Browse files Browse the repository at this point in the history
  • Loading branch information
jctanner authored Sep 17, 2024
2 parents 32e4bd2 + 22864c6 commit 9cd6b88
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 @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9cd6b88

Please sign in to comment.