diff --git a/bothub/api/v2/nlp/views.py b/bothub/api/v2/nlp/views.py index 6f7a5cf22..b90ad1a92 100644 --- a/bothub/api/v2/nlp/views.py +++ b/bothub/api/v2/nlp/views.py @@ -268,7 +268,7 @@ class RepositoryAuthorizationInfoViewSet(mixins.RetrieveModelMixin, GenericViewS queryset = RepositoryAuthorization.objects serializer_class = NLPSerializer permission_classes = [AllowAny] - authentication_classes = [NLPAuthentication] + authentication_classes = [] def retrieve(self, request, *args, **kwargs): check_auth(request) diff --git a/bothub/api/v2/tests/test_nlp.py b/bothub/api/v2/tests/test_nlp.py index a8aed763d..8d54a1277 100644 --- a/bothub/api/v2/tests/test_nlp.py +++ b/bothub/api/v2/tests/test_nlp.py @@ -196,10 +196,6 @@ def test_ok(self): response, content_data = self.request(str(self.repository_authorization.uuid)) self.assertEqual(response.status_code, status.HTTP_200_OK) - def test_not_auth(self): - response, content_data = self.request(str(uuid.uuid4())) - self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) - def test_list_all_repository_intents(self): response, content_data = self.request(str(self.repository_authorization.uuid)) self.assertEqual(len(response.data.get("intents")), 1)