From 95580b79a73ffa9fbde618eba499ca4587043c93 Mon Sep 17 00:00:00 2001 From: jawad khan Date: Tue, 9 Feb 2021 12:52:12 +0500 Subject: [PATCH] LEARNER-8218 Added BearerAuthenticationAllowInactiveUsern in celebration api Added BearerAuthenticationAllowInactiveUsern in celebration api --- openedx/core/djangoapps/courseware_api/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openedx/core/djangoapps/courseware_api/views.py b/openedx/core/djangoapps/courseware_api/views.py index a5ab33630c..8d037761e2 100644 --- a/openedx/core/djangoapps/courseware_api/views.py +++ b/openedx/core/djangoapps/courseware_api/views.py @@ -36,6 +36,7 @@ from lms.djangoapps.courseware.toggles import REDIRECT_TO_COURSEWARE_MICROFRONTE from lms.djangoapps.courseware.views.views import get_cert_data from lms.djangoapps.grades.api import CourseGradeFactory from lms.djangoapps.verify_student.services import IDVerificationService +from openedx.core.lib.api.authentication import BearerAuthenticationAllowInactiveUser from openedx.core.lib.api.view_utils import DeveloperErrorViewMixin from openedx.core.djangoapps.programs.utils import ProgramProgressMeter from openedx.features.course_experience import DISPLAY_COURSE_SOCK_FLAG @@ -583,6 +584,7 @@ class Celebration(DeveloperErrorViewMixin, APIView): authentication_classes = ( JwtAuthentication, + BearerAuthenticationAllowInactiveUser, SessionAuthenticationAllowInactiveUser, ) permission_classes = (IsAuthenticated, )