7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-14 19:42:21 +00:00

fix: authn login in dev by disabling enterprise integration

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
This commit is contained in:
Régis Behmo 2022-12-13 10:22:47 +01:00 committed by Régis Behmo
parent 146ec62a0a
commit 23a9914721
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1 @@
- [Bugfix] Fix Authn MFE login in development by disabling enterprise integration. (by @regisb)

View File

@ -24,7 +24,11 @@ SESSION_COOKIE_SAMESITE = "Lax"
# 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"],