diff --git a/lms/envs/common.py b/lms/envs/common.py index c5ecfa68af21..127f034b7632 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -4591,6 +4591,7 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring ENTERPRISE_CUSTOMER_CATALOG_DEFAULT_CONTENT_FILTER = {} ENTERPRISE_CUSTOMER_SUCCESS_EMAIL = "customersuccess@edx.org" ENTERPRISE_INTEGRATIONS_EMAIL = "enterprise-integrations@edx.org" +ENTERPRISE_ALGOLIA_SEARCH_API_KEY = "" # The setting key maps to the channel code (e.g. 'SAP' for success factors), Channel code is defined as diff --git a/lms/envs/production.py b/lms/envs/production.py index 342877206b0b..9f69fbbe10c9 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -881,6 +881,14 @@ def get_env_setting(setting): INTEGRATED_CHANNELS_API_CHUNK_TRANSMISSION_LIMIT ) +# Key used to generate per-user secured search keys, which in turn used by +# enterprise learner portal to fetch courses only from enterprise catalogs +# belonging to the user's enterprise. +ENTERPRISE_ALGOLIA_SEARCH_API_KEY = ENV_TOKENS.get( + 'ENTERPRISE_ALGOLIA_SEARCH_API_KEY', + ENTERPRISE_ALGOLIA_SEARCH_API_KEY +) + ############## ENTERPRISE SERVICE API CLIENT CONFIGURATION ###################### # The LMS communicates with the Enterprise service via the requests.Session() client # The below environmental settings are utilized by the LMS when interacting with