[scrobbles] Add tokenauth to webhookview
All checks were successful
build & deploy / test (push) Successful in 1m50s
build & deploy / deploy (push) Successful in 22s

This commit is contained in:
2026-03-31 14:18:13 -04:00
parent 6b278ad99f
commit 173bbfa91f
2 changed files with 3 additions and 10 deletions

View File

@ -13,6 +13,7 @@ from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.db.models import Count, Max, Q
from django.db.models.query import QuerySet
from rest_framework.authentication import TokenAuthentication
from django.http import (
FileResponse,
Http404,
@ -83,6 +84,7 @@ logger = logging.getLogger(__name__)
class WebhookView(APIView):
permission_classes = [IsAuthenticated]
authentication_classes = [TokenAuthentication]
@property
def logger(self):