diff --git a/courseware/api.py b/courseware/api.py index 9fef93ac9..56efad7c5 100644 --- a/courseware/api.py +++ b/courseware/api.py @@ -52,7 +52,7 @@ OPENEDX_REGISTER_USER_PATH = "/user_api/v1/account/registration/" OPENEDX_REQUEST_DEFAULTS = dict(country="US", honor_code=True) # noqa: C408 -OPENEDX_SOCIAL_LOGIN_XPRO_PATH = "/auth/login/mitxpro-oauth2/?auth_entry=login" +OPENEDX_SOCIAL_LOGIN_PATH = "/auth/login/ol-oauth2/?auth_entry=login" OPENEDX_OAUTH2_AUTHORIZE_PATH = "/oauth2/authorize" OPENEDX_OAUTH2_ACCESS_TOKEN_PATH = "/oauth2/access_token" # noqa: S105 OPENEDX_OAUTH2_SCOPES = ["read", "write"] @@ -256,7 +256,7 @@ def create_edx_auth_token(user): req_session.cookies.set_cookie(session_cookie) # Step 3 - url = edx_url(OPENEDX_SOCIAL_LOGIN_XPRO_PATH) + url = edx_url(OPENEDX_SOCIAL_LOGIN_PATH) resp = req_session.get(url) resp.raise_for_status() @@ -316,7 +316,7 @@ def update_edx_user_email(user): ) req_session.cookies.set_cookie(session_cookie) - url = edx_url(OPENEDX_SOCIAL_LOGIN_XPRO_PATH) + url = edx_url(OPENEDX_SOCIAL_LOGIN_PATH) resp = req_session.get(url) resp.raise_for_status() diff --git a/mitxpro/settings.py b/mitxpro/settings.py index fc81325d3..bfcaec6e4 100644 --- a/mitxpro/settings.py +++ b/mitxpro/settings.py @@ -1070,7 +1070,7 @@ MITOL_AUTHENTICATION_REPLY_TO_EMAIL = MITXPRO_REPLY_TO_ADDRESS -MITXPRO_OAUTH_PROVIDER = "mitxpro-oauth2" +MITXPRO_OAUTH_PROVIDER = "ol-oauth2" OPENEDX_OAUTH_APP_NAME = get_string( name="OPENEDX_OAUTH_APP_NAME", default="edx-oauth-app",