Update all edx-platform REST endpoints to support JWT Auth (#34152)
* chore: update API endpoints to support default JWT auth The default DRF Auth classes were recently updated to allow for both JWT and Session auth by default. Any endpoint that overrides the AUTHENTICATION_CLASSES but has just session, just JWT or just both of those should be updated to remove the override. Details in https://github.com/openedx/edx-platform/issues/33662
This commit is contained in:
@@ -8,10 +8,8 @@ from requests.exceptions import SSLError, MissingSchema, HTTPError
|
||||
from django.http import Http404
|
||||
from django.shortcuts import get_object_or_404
|
||||
from edx_rbac.mixins import PermissionRequiredMixin
|
||||
from edx_rest_framework_extensions.auth.jwt.authentication import JwtAuthentication
|
||||
from enterprise.models import EnterpriseCustomerIdentityProvider
|
||||
from rest_framework import permissions, status, viewsets
|
||||
from rest_framework.authentication import SessionAuthentication
|
||||
from rest_framework.decorators import action
|
||||
from rest_framework.exceptions import ParseError
|
||||
from rest_framework.response import Response
|
||||
@@ -31,7 +29,6 @@ log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class SAMLProviderDataMixin:
|
||||
authentication_classes = [JwtAuthentication, SessionAuthentication]
|
||||
permission_classes = [permissions.IsAuthenticated]
|
||||
serializer_class = SAMLProviderDataSerializer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user