Skip to content

Commit

Permalink
fix: authn login in dev by disabling enterprise integration
Browse files Browse the repository at this point in the history
In development, login via the authn mfe was broken because of explicit
enterprise integration:

    requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=18000): Max retries exceeded with url: /enterprise/api/v1/enterprise-learner/?username=regis (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd4c02b8a90>: Failed to establish a new connection: [Errno 111] Connection refused'))

See: https://discuss.overhang.io/t/tutor-login-fail-in-new-version/3083
  • Loading branch information
regisb committed Dec 13, 2022
1 parent 146ec62 commit 23a9914
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/20221213_102202_regis_dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bugfix] Fix Authn MFE login in development by disabling enterprise integration. (by @regisb)
6 changes: 5 additions & 1 deletion tutor/templates/apps/openedx/settings/lms/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
# CMS authentication
IDA_LOGOUT_URI_LIST.append("http://{{ CMS_HOST }}:8001/logout/")

FEATURES['ENABLE_COURSEWARE_MICROFRONTEND'] = False
FEATURES["ENABLE_COURSEWARE_MICROFRONTEND"] = False

# Disable enterprise integration
FEATURES["ENABLE_ENTERPRISE_INTEGRATION"] = False
SYSTEM_WIDE_ROLE_CLASSES.remove("enterprise.SystemWideEnterpriseUserRoleAssignment")

LOGGING["loggers"]["oauth2_provider"] = {
"handlers": ["console"],
Expand Down

0 comments on commit 23a9914

Please sign in to comment.