Skip to content

Commit

Permalink
chore: change backend name
Browse files Browse the repository at this point in the history
  • Loading branch information
Anas12091101 committed Nov 28, 2024
1 parent b1bb4ed commit 14587c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions courseware/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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()

Expand Down Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion mitxpro/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 14587c1

Please sign in to comment.