[scrobbles] Use Bearer token keyword
Some checks failed
build & deploy / test (push) Failing after 1m22s
build & deploy / deploy (push) Has been skipped

This commit is contained in:
2026-03-31 14:31:13 -04:00
parent 173bbfa91f
commit 3058bfdd22

View File

@ -14,6 +14,15 @@ 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 rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.authtoken.models import Token
from rest_framework.permissions import IsAuthenticated
class BearerTokenAuthentication(TokenAuthentication):
keyword = "Bearer"
from django.http import (
FileResponse,
Http404,
@ -84,7 +93,7 @@ logger = logging.getLogger(__name__)
class WebhookView(APIView):
permission_classes = [IsAuthenticated]
authentication_classes = [TokenAuthentication]
authentication_classes = [BearerTokenAuthentication]
@property
def logger(self):