Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions enterprise_access/apps/api/v1/views/bffs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
"""
import logging
from collections import OrderedDict
from datetime import datetime

from django.utils import timezone
from drf_spectacular.utils import OpenApiParameter, OpenApiTypes, extend_schema
from edx_rest_framework_extensions.auth.jwt.authentication import JwtAuthentication
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.permissions import IsAuthenticated
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.response import Response
from rest_framework.throttling import AnonRateThrottle
from rest_framework.viewsets import ViewSet
Expand Down Expand Up @@ -213,8 +212,8 @@ class BaseUnauthenticatedBFFViewSet(BaseBFFViewSetMixin, ViewSet):
Uses BaseHandlerContext which doesn't store customer or user data.
"""

authentication_classes = []
permission_classes = []
authentication_classes = [JwtAuthentication]
permission_classes = [IsAuthenticated | AllowAny]
throttle_classes = [BFFAnonRateThrottle]

def load_route_data_and_build_response(self, request, handler_class, response_builder_class):
Expand Down
Loading