def enable_external_auth_rhsso(enroll_configure_rhsso_external_auth, default_sat): """register the satellite with RH-SSO Server for single sign-on""" client_id = get_rhsso_client_id() create_mapper(GROUP_MEMBERSHIP_MAPPER, client_id) audience_mapper = copy.deepcopy(AUDIENCE_MAPPER) audience_mapper['config']['included.client.audience'] = audience_mapper[ 'config']['included.client.audience'].format(rhsso_host=default_sat) create_mapper(audience_mapper, client_id) set_the_redirect_uri()
def enable_external_auth_rhsso(enroll_configure_rhsso_external_auth): """register the satellite with RH-SSO Server for single sign-on""" client_id = get_rhsso_client_id() create_mapper(GROUP_MEMBERSHIP_MAPPER, client_id) audience_mapper = copy.deepcopy(AUDIENCE_MAPPER) audience_mapper["config"]["included.client.audience"] = audience_mapper["config"][ "included.client.audience" ].format(rhsso_host=settings.server.hostname) create_mapper(audience_mapper, client_id) set_the_redirect_uri()