From a16ad52250405bff2e61257b9d44dadbb5e06c39 Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Thu, 20 Aug 2020 08:28:28 -0400 Subject: [PATCH] Devstack: Allow login redirection from LMS to several MFEs (#24808) I added all MFEs whose ports I know from the Devstack README. Other MFE authors should feel free to add their 'localhost:PORT' entry here. --- lms/envs/devstack.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lms/envs/devstack.py b/lms/envs/devstack.py index 004d4d9bd4..ce65e39584 100644 --- a/lms/envs/devstack.py +++ b/lms/envs/devstack.py @@ -275,8 +275,20 @@ CORS_ALLOW_HEADERS = corsheaders_default_headers + ( LOGIN_REDIRECT_WHITELIST = [ CMS_BASE, - ENTERPRISE_LEARNER_PORTAL_NETLOC, - ENTERPRISE_ADMIN_PORTAL_NETLOC, + # Allow redirection to all micro-frontends. + # Please add your MFE if is not already listed here. + # Note: For this to work, the MFE must set BASE_URL in its .env.development to: + # BASE_URL=http://localhost:$PORT + # as opposed to: + # BASE_URL=localhost:$PORT + 'localhost:1976', # frontend-app-program-console + 'localhost:1994', # frontend-app-gradebook + 'localhost:2000', # frontend-app-learning + 'localhost:2001', # frontend-app-course-authoring + 'localhost:3001', # frontend-app-library-authoring + 'localhost:18400', # frontend-app-publisher + ENTERPRISE_LEARNER_PORTAL_NETLOC, # frontend-app-learner-portal-enterprise + ENTERPRISE_ADMIN_PORTAL_NETLOC, # frontend-app-admin-portal ] ###################### JWTs ######################