Merge pull request #17324 from edx/douglashall/add_enterprise_reporting_secret_to_cms

Add ENTERPRISE_REPORTING_SECRET to cms settings.
This commit is contained in:
Douglas Hall
2018-01-26 15:59:52 -05:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -570,6 +570,14 @@ COMPLETION_VIDEO_COMPLETE_PERCENTAGE = ENV_TOKENS.get(
COMPLETION_VIDEO_COMPLETE_PERCENTAGE,
)
####################### Enterprise Settings ######################
# A shared secret to be used for encrypting passwords passed from the enterprise api
# to the enteprise reporting script.
ENTERPRISE_REPORTING_SECRET = AUTH_TOKENS.get(
'ENTERPRISE_REPORTING_SECRET',
ENTERPRISE_REPORTING_SECRET
)
####################### Plugin Settings ##########################
from openedx.core.djangoapps.plugins import plugin_settings, constants as plugin_constants

View File

@@ -1456,6 +1456,8 @@ USER_TASKS_MAX_AGE = timedelta(days=7)
ENTERPRISE_ENROLLMENT_API_URL = LMS_ROOT_URL + LMS_ENROLLMENT_API_PATH
ENTERPRISE_SERVICE_WORKER_USERNAME = 'enterprise_worker'
ENTERPRISE_API_CACHE_TIMEOUT = 3600 # Value is in seconds
# The default value of this needs to be a 16 character string
ENTERPRISE_REPORTING_SECRET = '0000000000000000'
############## Settings for the Discovery App ######################