diff --git a/lms/envs/common.py b/lms/envs/common.py index 3dde7156b93e..67f4d92ca83f 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -579,7 +579,7 @@ # .. toggle_tickets: 'https://github.com/openedx/edx-platform/pull/24908' # .. toggle_warning: Also set settings.AUTHN_MICROFRONTEND_URL for rollout. This temporary feature # toggle does not have a target removal date. -ENABLE_AUTHN_MICROFRONTEND = os.environ.get("EDXAPP_ENABLE_AUTHN_MFE", False) +ENABLE_AUTHN_MICROFRONTEND = os.getenv("EDXAPP_ENABLE_AUTHN_MFE", "false").lower() == "true" # .. toggle_name: settings.ENABLE_CATALOG_MICROFRONTEND # .. toggle_implementation: DjangoSetting diff --git a/openedx/core/djangoapps/user_authn/toggles.py b/openedx/core/djangoapps/user_authn/toggles.py index 67da464cbb5f..7bdff08fc563 100644 --- a/openedx/core/djangoapps/user_authn/toggles.py +++ b/openedx/core/djangoapps/user_authn/toggles.py @@ -23,6 +23,10 @@ def should_redirect_to_authn_microfrontend(): return False return configuration_helpers.get_value( 'ENABLE_AUTHN_MICROFRONTEND', settings.FEATURES.get('ENABLE_AUTHN_MICROFRONTEND') + ) and not ( + configuration_helpers.get_value('ENABLE_ENTERPRISE_CUSTOMER', False) and + configuration_helpers.get_value('ENABLE_TPA_HINT_PROVIDER', False) and + configuration_helpers.get_value('ENABLE_SAML_PROVIDER', False) )