diff --git a/openedx/core/djangoapps/user_authn/views/login.py b/openedx/core/djangoapps/user_authn/views/login.py index de6bb2cdcb..7508da6b18 100644 --- a/openedx/core/djangoapps/user_authn/views/login.py +++ b/openedx/core/djangoapps/user_authn/views/login.py @@ -301,7 +301,7 @@ def _check_user_auth_flow(site, user): link_start=HTML("").format( tpa_provider_link='{dashboard_url}?tpa_hint={tpa_hint}'.format( dashboard_url=reverse('dashboard'), - tpa_hint=site.configuration.get_value('THIRD_PARTY_AUTH_HINT'), + tpa_hint=site.configuration.get_value('THIRD_PARTY_AUTH_ONLY_HINT'), ) ), provider=site.configuration.get_value('THIRD_PARTY_AUTH_ONLY_PROVIDER'), diff --git a/openedx/core/djangoapps/user_authn/views/tests/test_login.py b/openedx/core/djangoapps/user_authn/views/tests/test_login.py index e7972e6291..164f24a224 100644 --- a/openedx/core/djangoapps/user_authn/views/tests/test_login.py +++ b/openedx/core/djangoapps/user_authn/views/tests/test_login.py @@ -638,7 +638,7 @@ class LoginTest(SiteMixin, CacheIsolationTestCase): 'SITE_NAME': allowed_domain, 'THIRD_PARTY_AUTH_ONLY_DOMAIN': allowed_domain, 'THIRD_PARTY_AUTH_ONLY_PROVIDER': provider, - 'THIRD_PARTY_AUTH_HINT': provider_tpa_hint, + 'THIRD_PARTY_AUTH_ONLY_HINT': provider_tpa_hint, } with ENABLE_LOGIN_USING_THIRDPARTY_AUTH_ONLY.override(switch_enabled):