Browse Source

ref(monitors): Remove ApiKeyAuthentication from monitor ingest (#46017)

This is legacy and should not be used
Evan Purkhiser 2 years ago
parent
commit
8aae75842c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/sentry/monitors/endpoints/base.py

+ 2 - 2
src/sentry/monitors/endpoints/base.py

@@ -4,7 +4,7 @@ from uuid import UUID
 
 from rest_framework.request import Request
 
-from sentry.api.authentication import ApiKeyAuthentication, DSNAuthentication, TokenAuthentication
+from sentry.api.authentication import DSNAuthentication, TokenAuthentication
 from sentry.api.base import Endpoint
 from sentry.api.bases.organization import OrganizationPermission
 from sentry.api.bases.project import ProjectPermission
@@ -120,7 +120,7 @@ class MonitorIngestEndpoint(Endpoint):
           checkin ingestion in the very near future.
     """
 
-    authentication_classes = (DSNAuthentication, TokenAuthentication, ApiKeyAuthentication)
+    authentication_classes = (DSNAuthentication, TokenAuthentication)
     permission_classes = (ProjectMonitorPermission,)
 
     allow_auto_create_monitors = False