From 3c01ed44d0d4e37f9b74186bfd6b9fa3dab7fdac Mon Sep 17 00:00:00 2001 From: Renzo Lucioni Date: Tue, 8 Dec 2015 13:33:20 -0500 Subject: [PATCH] Include auth URL data attribute in the programs authoring template The authoring app requests JWTs from this endpoint. --- cms/djangoapps/contentstore/views/program.py | 1 + cms/templates/program_authoring.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/program.py b/cms/djangoapps/contentstore/views/program.py index aa7df2d16a..c79117fb54 100644 --- a/cms/djangoapps/contentstore/views/program.py +++ b/cms/djangoapps/contentstore/views/program.py @@ -28,6 +28,7 @@ class ProgramAuthoringView(View): 'show_programs_header': programs_config.is_studio_tab_enabled, 'authoring_app_config': programs_config.authoring_app_config, 'programs_api_url': programs_config.public_api_url, + 'programs_token_url': reverse('programs_id_token'), 'studio_home_url': reverse('home'), }) else: diff --git a/cms/templates/program_authoring.html b/cms/templates/program_authoring.html index 36f9e0e5c8..9d5538a3b4 100644 --- a/cms/templates/program_authoring.html +++ b/cms/templates/program_authoring.html @@ -12,5 +12,5 @@ <%block name="content"> -
+