From 17e64a80205581bd07ea443e3f14504fd580e687 Mon Sep 17 00:00:00 2001 From: "zia.fazal@arbisoft.com" Date: Tue, 14 Jan 2020 15:19:52 +0500 Subject: [PATCH] Chnage site configuration name to avoid conflict with existing configration Changed `THIRD_PARTY_AUTH_HINT` to `THIRD_PARTY_AUTH_ONLY_HINT` because there is an existing configuration with same name. --- openedx/core/djangoapps/user_authn/views/login.py | 2 +- openedx/core/djangoapps/user_authn/views/tests/test_login.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):