Skip to content

Commit

Permalink
use server auth for messaging views
Browse files Browse the repository at this point in the history
  • Loading branch information
calellowitz committed Nov 6, 2024
1 parent 25f696c commit 610bb95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions messaging/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
MessageData
from messaging.task import make_request, send_messages_to_service_and_mark_status
from users.models import ConnectUser
from utils.rest_framework import ClientProtectedResourceAuth
from utils.rest_framework import ClientProtectedResourceAuth, MessagingServerAuth


def get_current_message_server(request):
Expand Down Expand Up @@ -162,7 +162,7 @@ def _build_notification(data):


class CreateChannelView(APIView):
authentication_classes = [ClientProtectedResourceAuth]
authentication_classes = [MessageServerAuth]

def post(self, request, *args, **kwargs):
data = request.data
Expand All @@ -185,7 +185,7 @@ def post(self, request, *args, **kwargs):


class SendServerConnectMessage(APIView):
authentication_classes = [ClientProtectedResourceAuth]
authentication_classes = [MessageServerAuth]

def post(self, request, *args, **kwargs):
data = request.data
Expand Down

0 comments on commit 610bb95

Please sign in to comment.