From 8dc43c01329e916ed4888849468fb4968954480d Mon Sep 17 00:00:00 2001 From: DJ Gillespie Date: Wed, 17 Jan 2024 19:59:34 -0700 Subject: [PATCH] temporarily disable auth for connections --- connection/connections/plaid_client_v2.py | 2 +- connection/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/connection/connections/plaid_client_v2.py b/connection/connections/plaid_client_v2.py index 1a037d7..96ef0f6 100755 --- a/connection/connections/plaid_client_v2.py +++ b/connection/connections/plaid_client_v2.py @@ -69,7 +69,7 @@ class Connection(AbstractConnectionClient): response = client.link_token_create(request) self.credentials.update(response.to_dict()) - return self.credentials + # return self.credentials def get_auth_token(self, public_token): try: diff --git a/connection/views.py b/connection/views.py index 83a19d0..a79ebe5 100644 --- a/connection/views.py +++ b/connection/views.py @@ -23,7 +23,7 @@ class ConnectionTypeViewSet(viewsets.ModelViewSet): class ConnectionViewSet(viewsets.ModelViewSet): """API endpoint that allows connections to be seen or created """ - permission_classes = [IsAuthenticated] + # permission_classes = [IsAuthenticated] queryset = Connection.objects.all() serializer_class = ConnectionSerializer # Make connections somewhat immutable from the users perspective