Skip to content

Commit

Permalink
Add JWT as an authentication class for Enrollment endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
wondrousWebWorks committed Jan 15, 2024
1 parent fb51eee commit 7688ee9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lms/djangoapps/student_enrollment/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import date
from edx_rest_framework_extensions.auth.jwt.authentication import JwtAuthentication
from logging import getLogger
from rest_framework import status
from rest_framework.views import APIView
Expand Down Expand Up @@ -39,6 +40,7 @@ class StudentEnrollment(APIView):
will enroll a given student in a program using the email address
and program code provided.
"""
authentication_classes = (JwtAuthentication, )

def post(self, request):

Expand Down

0 comments on commit 7688ee9

Please sign in to comment.