Skip to content

Commit 93713a6

Browse files
Merge pull request #60 from edx/AUT-31-code-change-identification-for-enterprise-applications
AUT-31 code changes & implementation for redirection from Legacy page to new Authn MFE
2 parents c724bfd + 9c50d4d commit 93713a6

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lms/envs/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
# .. toggle_tickets: 'https://github.com/openedx/edx-platform/pull/24908'
580580
# .. toggle_warning: Also set settings.AUTHN_MICROFRONTEND_URL for rollout. This temporary feature
581581
# toggle does not have a target removal date.
582-
ENABLE_AUTHN_MICROFRONTEND = os.environ.get("EDXAPP_ENABLE_AUTHN_MFE", False)
582+
ENABLE_AUTHN_MICROFRONTEND = os.getenv("EDXAPP_ENABLE_AUTHN_MFE", "false").lower() == "true"
583583

584584
# .. toggle_name: settings.ENABLE_CATALOG_MICROFRONTEND
585585
# .. toggle_implementation: DjangoSetting

openedx/core/djangoapps/user_authn/toggles.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ def should_redirect_to_authn_microfrontend():
2323
return False
2424
return configuration_helpers.get_value(
2525
'ENABLE_AUTHN_MICROFRONTEND', settings.FEATURES.get('ENABLE_AUTHN_MICROFRONTEND')
26+
) and not (
27+
configuration_helpers.get_value('ENABLE_ENTERPRISE_CUSTOMER', False) and
28+
configuration_helpers.get_value('ENABLE_TPA_HINT_PROVIDER', False) and
29+
configuration_helpers.get_value('ENABLE_SAML_PROVIDER', False)
2630
)
2731

2832

0 commit comments

Comments
 (0)