diff --git a/lms/envs/common.py b/lms/envs/common.py index ac4d9ccd58..de26b10128 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -3332,7 +3332,14 @@ CROSS_DOMAIN_CSRF_COOKIE_NAME = '' REST_FRAMEWORK = { # These default classes add observability around endpoints using defaults, and should # not be used anywhere else. + # Notes on Order: + # 1. `JwtAuthentication` does not check `is_active`, so email validation does not affect it. However, + # `SessionAuthentication` does. These work differently, and order changes in what way, which really stinks. See + # https://github.com/openedx/public-engineering/issues/165 for details. + # 2. `JwtAuthentication` may also update the database based on contents. Since the LMS creates these JWTs, this + # shouldn't have any affect at this time. But it could, when and if another service started creating the JWTs. 'DEFAULT_AUTHENTICATION_CLASSES': [ + 'openedx.core.djangolib.default_auth_classes.DefaultJwtAuthentication', 'openedx.core.djangolib.default_auth_classes.DefaultSessionAuthentication', ], 'DEFAULT_PAGINATION_CLASS': 'edx_rest_framework_extensions.paginators.DefaultPagination',