Skip to content

Commit

Permalink
Enable service redirect auth and reverse-sync from DAB (#15489)
Browse files Browse the repository at this point in the history
* Update settings from DAB features

* Move to the end of the list more correctly
  • Loading branch information
AlanCoding authored Sep 23, 2024
1 parent 7db7abc commit 5b7a050
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion awx/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,11 @@
'social_core.pipeline.user.user_details',
'awx.sso.social_base_pipeline.prevent_inactive_login',
)
SOCIAL_AUTH_PIPELINE = _SOCIAL_AUTH_PIPELINE_BASE + ('awx.sso.social_pipeline.update_user_orgs', 'awx.sso.social_pipeline.update_user_teams')
SOCIAL_AUTH_PIPELINE = _SOCIAL_AUTH_PIPELINE_BASE + (
'awx.sso.social_pipeline.update_user_orgs',
'awx.sso.social_pipeline.update_user_teams',
'ansible_base.resource_registry.utils.service_backed_sso_pipeline.redirect_to_resource_server',
)
SOCIAL_AUTH_SAML_PIPELINE = _SOCIAL_AUTH_PIPELINE_BASE + ('awx.sso.saml_pipeline.populate_user', 'awx.sso.saml_pipeline.update_user_flags')
SAML_AUTO_CREATE_OBJECTS = True

Expand Down Expand Up @@ -1165,6 +1169,9 @@
# Use AWX base view, to give 401 on unauthenticated requests
ANSIBLE_BASE_CUSTOM_VIEW_PARENT = 'awx.api.generics.APIView'

# If we have a resource server defined, apply local changes to that server
RESOURCE_SERVER_SYNC_ENABLED = True

# Settings for the ansible_base RBAC system

# This has been moved to data migration code
Expand Down

0 comments on commit 5b7a050

Please sign in to comment.